Skip to content
Snippets Groups Projects
Verified Commit 76fc11d3 authored by Jess's avatar Jess
Browse files

Issue #3389286 by quietone: Fix spelling of words only misspelled in tests, part 2

parent ff567110
No related branches found
No related tags found
14 merge requests!11628Update file MediaLibraryWidget.php,!7564Revert "Issue #3364773 by roshnichordiya, Chris Matthews, thakurnishant_06,...,!5752Issue #3275828 by joachim, quietone, bradjones1, Berdir: document the reason...,!5627Issue #3261805: Field not saved when change of 0 on string start,!5427Issue #3338518: send credentials in ajax if configured in CORS settings.,!5395Issue #3387916 by fjgarlin, Spokje: Each GitLab job exposes user email,!5217Issue #3386607 by alexpott: Improve spell checking in commit-code-check.sh,!5064Issue #3379522 by finnsky, Gauravvvv, kostyashupenko, smustgrave, Chi: Revert...,!5040SDC ComponentElement: Transform slots scalar values to #plain_text instead of throwing an exception,!4958Issue #3392147: Whitelist IP for a Ban module.,!4894Issue #3280279: Add API to allow sites to opt in to upload SVG images in CKEditor 5,!3106Issue #3017548: "Filtered HTML" text format does not support manual teaser break (<!--break-->),!925Issue #2339235: Remove taxonomy hard dependency on node module,!872Draft: Issue #3221319: Race condition when creating menu links and editing content deletes menu links
Pipeline #25314 passed
Pipeline: drupal

#25324

    Pipeline: drupal

    #25323

      Pipeline: drupal

      #25322

        +1
        Showing
        with 62 additions and 74 deletions
        ...@@ -19,7 +19,6 @@ ajaxing ...@@ -19,7 +19,6 @@ ajaxing
        akiko akiko
        allwords allwords
        alphadecimal alphadecimal
        alterjs
        alternatif alternatif
        amet amet
        amphibius amphibius
        ...@@ -130,8 +129,6 @@ bodyvalue ...@@ -130,8 +129,6 @@ bodyvalue
        boing boing
        bomofo bomofo
        bonacieux bonacieux
        boskoop
        boskop
        bovigo bovigo
        breezer breezer
        brion brion
        ...@@ -344,7 +341,6 @@ drivertext ...@@ -344,7 +341,6 @@ drivertext
        dropbutton dropbutton
        dropbuttons dropbuttons
        drudbal drudbal
        drup
        drupalci drupalci
        drupaldatetime drupaldatetime
        drupaldevdays drupaldevdays
        ...@@ -369,7 +365,6 @@ drush ...@@ -369,7 +365,6 @@ drush
        drépal drépal
        détruire détruire
        editables editables
        editunblock
        eerste eerste
        egulias egulias
        eins eins
        ...@@ -439,7 +434,6 @@ fieldsets ...@@ -439,7 +434,6 @@ fieldsets
        filelist filelist
        filemime filemime
        filesort filesort
        filestorage
        filesystems filesystems
        filetransfer filetransfer
        filevalidationerror filevalidationerror
        ...@@ -456,7 +450,6 @@ fooalert ...@@ -456,7 +450,6 @@ fooalert
        foobarbaz foobarbaz
        foobargorilla foobargorilla
        foofoo foofoo
        foos
        formattable formattable
        formvalidation formvalidation
        fouc fouc
        ...@@ -753,7 +746,6 @@ negotiatiors ...@@ -753,7 +746,6 @@ negotiatiors
        newcol newcol
        newfieldinitial newfieldinitial
        newnode newnode
        newstr
        newterm newterm
        newwin newwin
        nids nids
        ...@@ -918,8 +910,6 @@ presetname ...@@ -918,8 +910,6 @@ presetname
        pretransaction pretransaction
        preuninstall preuninstall
        processlist processlist
        projecta
        projectb
        proname proname
        prophesize prophesize
        prophesized prophesized
        ...@@ -1001,7 +991,6 @@ revlog ...@@ -1001,7 +991,6 @@ revlog
        revpub revpub
        ribisi ribisi
        ritchie ritchie
        rolename
        roly roly
        routable routable
        routeable routeable
        ...@@ -1062,7 +1051,6 @@ somemodule ...@@ -1062,7 +1051,6 @@ somemodule
        someschema someschema
        somethinggeneric somethinggeneric
        sortablejs sortablejs
        sourcedir
        sourceediting sourceediting
        spacebar spacebar
        spagna spagna
        ...@@ -1165,7 +1153,6 @@ tagstack ...@@ -1165,7 +1153,6 @@ tagstack
        tagwords tagwords
        takeshita takeshita
        tappable tappable
        targetdir
        tarz tarz
        taskless taskless
        tatou tatou
        ......
        ...@@ -46,14 +46,14 @@ public function testSearchTextProcessorUnicode() { ...@@ -46,14 +46,14 @@ public function testSearchTextProcessorUnicode() {
        // \Drupal\search\SearchTextProcessorInterface::analyze(). // \Drupal\search\SearchTextProcessorInterface::analyze().
        $start = 0; $start = 0;
        while ($start < mb_strlen($string)) { while ($start < mb_strlen($string)) {
        $newstr = mb_substr($string, $start, 30); $new_string = mb_substr($string, $start, 30);
        // Special case: leading zeros are removed from numeric strings, // Special case: leading zeros are removed from numeric strings,
        // and there's one string in this file that is numbers starting with // and there's one string in this file that is numbers starting with
        // zero, so prepend a 1 on that string. // zero, so prepend a 1 on that string.
        if (preg_match('/^[0-9]+$/', $newstr)) { if (preg_match('/^[0-9]+$/', $new_string)) {
        $newstr = '1' . $newstr; $new_string = '1' . $new_string;
        } }
        $strings[] = $newstr; $strings[] = $new_string;
        $start += 30; $start += 30;
        } }
        } }
        ......
        ...@@ -251,9 +251,9 @@ function common_test_page_attachments_alter(array &$page) { ...@@ -251,9 +251,9 @@ function common_test_page_attachments_alter(array &$page) {
        */ */
        function common_test_js_alter(&$javascript, AttachedAssetsInterface $assets, LanguageInterface $language) { function common_test_js_alter(&$javascript, AttachedAssetsInterface $assets, LanguageInterface $language) {
        // Attach alter.js above tableselect.js. // Attach alter.js above tableselect.js.
        $alterjs = \Drupal::service('extension.list.module')->getPath('common_test') . '/alter.js'; $alter_js = \Drupal::service('extension.list.module')->getPath('common_test') . '/alter.js';
        if (array_key_exists($alterjs, $javascript) && array_key_exists('core/misc/tableselect.js', $javascript)) { if (array_key_exists($alter_js, $javascript) && array_key_exists('core/misc/tableselect.js', $javascript)) {
        $javascript[$alterjs]['weight'] = $javascript['core/misc/tableselect.js']['weight'] - 1; $javascript[$alter_js]['weight'] = $javascript['core/misc/tableselect.js']['weight'] - 1;
        } }
        } }
        ......
        ...@@ -79,23 +79,23 @@ public function testJail() { ...@@ -79,23 +79,23 @@ public function testJail() {
        // This convoluted piece of code is here because our testing framework does // This convoluted piece of code is here because our testing framework does
        // not support expecting exceptions. // not support expecting exceptions.
        $gotit = FALSE; $got_it = FALSE;
        try { try {
        $this->testConnection->copyDirectory($source, sys_get_temp_dir()); $this->testConnection->copyDirectory($source, sys_get_temp_dir());
        } }
        catch (FileTransferException $e) { catch (FileTransferException $e) {
        $gotit = TRUE; $got_it = TRUE;
        } }
        $this->assertTrue($gotit, 'Was not able to copy a directory outside of the jailed area.'); $this->assertTrue($got_it, 'Was not able to copy a directory outside of the jailed area.');
        $gotit = TRUE; $got_it = TRUE;
        try { try {
        $this->testConnection->copyDirectory($source, $this->root . '/' . PublicStream::basePath()); $this->testConnection->copyDirectory($source, $this->root . '/' . PublicStream::basePath());
        } }
        catch (FileTransferException $e) { catch (FileTransferException $e) {
        $gotit = FALSE; $got_it = FALSE;
        } }
        $this->assertTrue($gotit, 'Was able to copy a directory inside of the jailed area'); $this->assertTrue($got_it, 'Was able to copy a directory inside of the jailed area');
        } }
        } }
        ...@@ -23,15 +23,15 @@ public function testFileRetrieving() { ...@@ -23,15 +23,15 @@ public function testFileRetrieving() {
        // Test 404 handling by trying to fetch a randomly named file. // Test 404 handling by trying to fetch a randomly named file.
        /** @var \Drupal\Core\File\FileSystemInterface $file_system */ /** @var \Drupal\Core\File\FileSystemInterface $file_system */
        $file_system = \Drupal::service('file_system'); $file_system = \Drupal::service('file_system');
        $file_system->mkdir($sourcedir = 'public://' . $this->randomMachineName()); $file_system->mkdir($source_dir = 'public://' . $this->randomMachineName());
        // cSpell:disable-next-line // cSpell:disable-next-line
        $filename = 'Файл для тестирования ' . $this->randomMachineName(); $filename = 'Файл для тестирования ' . $this->randomMachineName();
        $url = \Drupal::service('file_url_generator')->generateAbsoluteString($sourcedir . '/' . $filename); $url = \Drupal::service('file_url_generator')->generateAbsoluteString($source_dir . '/' . $filename);
        $retrieved_file = system_retrieve_file($url); $retrieved_file = system_retrieve_file($url);
        $this->assertFalse($retrieved_file, 'Non-existent file not fetched.'); $this->assertFalse($retrieved_file, 'Non-existent file not fetched.');
        // Actually create that file, download it via HTTP and test the returned path. // Actually create that file, download it via HTTP and test the returned path.
        file_put_contents($sourcedir . '/' . $filename, 'testing'); file_put_contents($source_dir . '/' . $filename, 'testing');
        $retrieved_file = system_retrieve_file($url); $retrieved_file = system_retrieve_file($url);
        // URLs could not contains characters outside the ASCII set so $filename // URLs could not contains characters outside the ASCII set so $filename
        ...@@ -46,15 +46,15 @@ public function testFileRetrieving() { ...@@ -46,15 +46,15 @@ public function testFileRetrieving() {
        $file_system->delete($retrieved_file); $file_system->delete($retrieved_file);
        // Test downloading file to a different location. // Test downloading file to a different location.
        $file_system->mkdir($targetdir = 'temporary://' . $this->randomMachineName()); $file_system->mkdir($target_dir = 'temporary://' . $this->randomMachineName());
        $retrieved_file = system_retrieve_file($url, $targetdir); $retrieved_file = system_retrieve_file($url, $target_dir);
        $this->assertEquals("{$targetdir}/{$encoded_filename}", $retrieved_file, 'Sane path for downloaded file returned (temporary:// scheme).'); $this->assertEquals("{$target_dir}/{$encoded_filename}", $retrieved_file, 'Sane path for downloaded file returned (temporary:// scheme).');
        $this->assertFileExists($retrieved_file); $this->assertFileExists($retrieved_file);
        $this->assertEquals(7, filesize($retrieved_file), 'File size of downloaded file is correct (temporary:// scheme).'); $this->assertEquals(7, filesize($retrieved_file), 'File size of downloaded file is correct (temporary:// scheme).');
        $file_system->delete($retrieved_file); $file_system->delete($retrieved_file);
        $file_system->deleteRecursive($sourcedir); $file_system->deleteRecursive($source_dir);
        $file_system->deleteRecursive($targetdir); $file_system->deleteRecursive($target_dir);
        } }
        } }
        ...@@ -55,8 +55,8 @@ public function testThemeDataTypes() { ...@@ -55,8 +55,8 @@ public function testThemeDataTypes() {
        // theme_test_false is an implemented theme hook so \Drupal::theme() service // theme_test_false is an implemented theme hook so \Drupal::theme() service
        // should return a string or an object that implements MarkupInterface, // should return a string or an object that implements MarkupInterface,
        // even though the theme function itself can return anything. // even though the theme function itself can return anything.
        $foos = ['null' => NULL, 'false' => FALSE, 'integer' => 1, 'string' => 'foo', 'empty_string' => '']; $types = ['null' => NULL, 'false' => FALSE, 'integer' => 1, 'string' => 'foo', 'empty_string' => ''];
        foreach ($foos as $type => $example) { foreach ($types as $type => $example) {
        $output = \Drupal::theme()->render('theme_test_foo', ['foo' => $example]); $output = \Drupal::theme()->render('theme_test_foo', ['foo' => $example]);
        $this->assertTrue($output instanceof MarkupInterface || is_string($output), new FormattableMarkup('\Drupal::theme() returns an object that implements MarkupInterface or a string for data type @type.', ['@type' => $type])); $this->assertTrue($output instanceof MarkupInterface || is_string($output), new FormattableMarkup('\Drupal::theme() returns an object that implements MarkupInterface or a string for data type @type.', ['@type' => $type]));
        if ($output instanceof MarkupInterface) { if ($output instanceof MarkupInterface) {
        ......
        ...@@ -446,25 +446,25 @@ public function testServiceUnavailable() { ...@@ -446,25 +446,25 @@ public function testServiceUnavailable() {
        * Tests that exactly one fetch task per project is created and not more. * Tests that exactly one fetch task per project is created and not more.
        */ */
        public function testFetchTasks() { public function testFetchTasks() {
        $projecta = [ $project_a = [
        'name' => 'aaa_update_test', 'name' => 'aaa_update_test',
        ]; ];
        $projectb = [ $project_b = [
        'name' => 'bbb_update_test', 'name' => 'bbb_update_test',
        ]; ];
        $queue = \Drupal::queue('update_fetch_tasks'); $queue = \Drupal::queue('update_fetch_tasks');
        $this->assertEquals(0, $queue->numberOfItems(), 'Queue is empty'); $this->assertEquals(0, $queue->numberOfItems(), 'Queue is empty');
        update_create_fetch_task($projecta); update_create_fetch_task($project_a);
        $this->assertEquals(1, $queue->numberOfItems(), 'Queue contains one item'); $this->assertEquals(1, $queue->numberOfItems(), 'Queue contains one item');
        update_create_fetch_task($projectb); update_create_fetch_task($project_b);
        $this->assertEquals(2, $queue->numberOfItems(), 'Queue contains two items'); $this->assertEquals(2, $queue->numberOfItems(), 'Queue contains two items');
        // Try to add a project again. // Try to add a project again.
        update_create_fetch_task($projecta); update_create_fetch_task($project_a);
        $this->assertEquals(2, $queue->numberOfItems(), 'Queue still contains two items'); $this->assertEquals(2, $queue->numberOfItems(), 'Queue still contains two items');
        // Clear storage and try again. // Clear storage and try again.
        update_storage_clear(); update_storage_clear();
        update_create_fetch_task($projecta); update_create_fetch_task($project_a);
        $this->assertEquals(2, $queue->numberOfItems(), 'Queue contains two items'); $this->assertEquals(2, $queue->numberOfItems(), 'Queue contains two items');
        } }
        ......
        ...@@ -143,15 +143,15 @@ public function testUserAdmin() { ...@@ -143,15 +143,15 @@ public function testUserAdmin() {
        $this->assertSession()->elementExists('xpath', static::getLinkSelectorForUser($user_c)); $this->assertSession()->elementExists('xpath', static::getLinkSelectorForUser($user_c));
        // Test unblocking of a user from /admin/people page and sending of activation mail // Test unblocking of a user from /admin/people page and sending of activation mail
        $editunblock = []; $edit_unblock = [];
        $editunblock['action'] = 'user_unblock_user_action'; $edit_unblock['action'] = 'user_unblock_user_action';
        $editunblock['user_bulk_form[4]'] = TRUE; $edit_unblock['user_bulk_form[4]'] = TRUE;
        $this->drupalGet('admin/people', [ $this->drupalGet('admin/people', [
        // Sort the table by username so that we know reliably which user will be // Sort the table by username so that we know reliably which user will be
        // targeted with the blocking action. // targeted with the blocking action.
        'query' => ['order' => 'name', 'sort' => 'asc'], 'query' => ['order' => 'name', 'sort' => 'asc'],
        ]); ]);
        $this->submitForm($editunblock, 'Apply to selected items'); $this->submitForm($edit_unblock, 'Apply to selected items');
        $user_storage->resetCache([$user_c->id()]); $user_storage->resetCache([$user_c->id()]);
        $account = $user_storage->load($user_c->id()); $account = $user_storage->load($user_c->id());
        $this->assertTrue($account->isActive(), 'User C unblocked'); $this->assertTrue($account->isActive(), 'User C unblocked');
        ......
        ...@@ -27,29 +27,29 @@ class HandlerFieldRoleTest extends UserTestBase { ...@@ -27,29 +27,29 @@ class HandlerFieldRoleTest extends UserTestBase {
        public function testRole() { public function testRole() {
        // Create a couple of roles for the view. // Create a couple of roles for the view.
        $rolename_a = 'a' . $this->randomMachineName(8); $role_name_a = 'a' . $this->randomMachineName(8);
        $this->drupalCreateRole(['access content'], $rolename_a, '<em>' . $rolename_a . '</em>', 9); $this->drupalCreateRole(['access content'], $role_name_a, '<em>' . $role_name_a . '</em>', 9);
        $rolename_b = 'b' . $this->randomMachineName(8); $role_name_b = 'b' . $this->randomMachineName(8);
        $this->drupalCreateRole(['access content'], $rolename_b, $rolename_b, 8); $this->drupalCreateRole(['access content'], $role_name_b, $role_name_b, 8);
        $rolename_not_assigned = $this->randomMachineName(8); $role_name_not_assigned = $this->randomMachineName(8);
        $this->drupalCreateRole(['access content'], $rolename_not_assigned, $rolename_not_assigned); $this->drupalCreateRole(['access content'], $role_name_not_assigned, $role_name_not_assigned);
        // Add roles to user 1. // Add roles to user 1.
        $user = User::load(1); $user = User::load(1);
        $user->addRole($rolename_a); $user->addRole($role_name_a);
        $user->addRole($rolename_b); $user->addRole($role_name_b);
        $user->save(); $user->save();
        $this->drupalLogin($this->createUser(['access user profiles'])); $this->drupalLogin($this->createUser(['access user profiles']));
        $this->drupalGet('/test-views-handler-field-role'); $this->drupalGet('/test-views-handler-field-role');
        // Verify that the view test_views_handler_field_role renders role assigned // Verify that the view test_views_handler_field_role renders role assigned
        // to user in the correct order and markup in role names is escaped. // to user in the correct order and markup in role names is escaped.
        $this->assertSession()->responseContains($rolename_b . Html::escape('<em>' . $rolename_a . '</em>')); $this->assertSession()->responseContains($role_name_b . Html::escape('<em>' . $role_name_a . '</em>'));
        // Verify that the view test_views_handler_field_role does not render a role // Verify that the view test_views_handler_field_role does not render a role
        // not assigned to a user. // not assigned to a user.
        $this->assertSession()->pageTextNotContains($rolename_not_assigned); $this->assertSession()->pageTextNotContains($role_name_not_assigned);
        } }
        } }
        ...@@ -96,7 +96,7 @@ protected function setUp($import_test_views = TRUE): void { ...@@ -96,7 +96,7 @@ protected function setUp($import_test_views = TRUE): void {
        ]); ]);
        $this->node2 = $this->createNode([ $this->node2 = $this->createNode([
        'type' => 'foo', 'type' => 'foo',
        'title' => 'foos', 'title' => 'foo',
        'status' => 1, 'status' => 1,
        'uid' => $admin->id(), 'uid' => $admin->id(),
        'created' => REQUEST_TIME - 5, 'created' => REQUEST_TIME - 5,
        ......
        ...@@ -39,19 +39,19 @@ public function testBypassOwnWorkspace() { ...@@ -39,19 +39,19 @@ public function testBypassOwnWorkspace() {
        $this->createContentType(['type' => 'test', 'label' => 'Test']); $this->createContentType(['type' => 'test', 'label' => 'Test']);
        $this->setupWorkspaceSwitcherBlock(); $this->setupWorkspaceSwitcherBlock();
        $ditka = $this->drupalCreateUser(array_merge($permissions, ['create test content'])); $coach = $this->drupalCreateUser(array_merge($permissions, ['create test content']));
        // Login as a limited-access user and create a workspace. // Login as a limited-access user and create a workspace.
        $this->drupalLogin($ditka); $this->drupalLogin($coach);
        $bears = $this->createWorkspaceThroughUi('Bears', 'bears'); $bears = $this->createWorkspaceThroughUi('Bears', 'bears');
        $this->switchToWorkspace($bears); $this->switchToWorkspace($bears);
        // Now create a node in the Bears workspace, as the owner of that workspace. // Now create a node in the Bears workspace, as the owner of that workspace.
        $ditka_bears_node = $this->createNodeThroughUi('Ditka Bears node', 'test'); $coach_bears_node = $this->createNodeThroughUi('Ditka Bears node', 'test');
        $ditka_bears_node_id = $ditka_bears_node->id(); $coach_bears_node_id = $coach_bears_node->id();
        // Editing both nodes should be possible. // Editing both nodes should be possible.
        $this->drupalGet('/node/' . $ditka_bears_node_id . '/edit'); $this->drupalGet('/node/' . $coach_bears_node_id . '/edit');
        $this->assertSession()->statusCodeEquals(200); $this->assertSession()->statusCodeEquals(200);
        // Create a new user that should be able to edit anything in the Bears // Create a new user that should be able to edit anything in the Bears
        ...@@ -63,7 +63,7 @@ public function testBypassOwnWorkspace() { ...@@ -63,7 +63,7 @@ public function testBypassOwnWorkspace() {
        // Editor 2 has the bypass permission but does not own the workspace and so, // Editor 2 has the bypass permission but does not own the workspace and so,
        // should not be able to create and edit any node. // should not be able to create and edit any node.
        $this->drupalGet('/node/' . $ditka_bears_node_id . '/edit'); $this->drupalGet('/node/' . $coach_bears_node_id . '/edit');
        $this->assertSession()->statusCodeEquals(403); $this->assertSession()->statusCodeEquals(403);
        } }
        ......
        ...@@ -207,9 +207,9 @@ public function testSerialization() { ...@@ -207,9 +207,9 @@ public function testSerialization() {
        ]; ];
        // Encode and write, and reload and decode the configuration data. // Encode and write, and reload and decode the configuration data.
        $filestorage = new FileStorage(Settings::get('config_sync_directory')); $file_storage = new FileStorage(Settings::get('config_sync_directory'));
        $filestorage->write($name, $config_data); $file_storage->write($name, $config_data);
        $config_parsed = $filestorage->read($name); $config_parsed = $file_storage->read($name);
        $key = 'numeric keys'; $key = 'numeric keys';
        $this->assertSame($config_data[$key], $config_parsed[$key]); $this->assertSame($config_data[$key], $config_parsed[$key]);
        ......
        ...@@ -47,10 +47,10 @@ public static function providerToString() { ...@@ -47,10 +47,10 @@ public static function providerToString() {
        $tests[] = [$script_tag, '&lt;script&gt;', 'Escapes &lt;script&gt; even inside an object that implements MarkupInterface.']; $tests[] = [$script_tag, '&lt;script&gt;', 'Escapes &lt;script&gt; even inside an object that implements MarkupInterface.'];
        $tests[] = ["<script>", '&lt;script&gt;', 'Escapes &lt;script&gt;']; $tests[] = ["<script>", '&lt;script&gt;', 'Escapes &lt;script&gt;'];
        $tests[] = ['<>&"\'', '&lt;&gt;&amp;&quot;&#039;', 'Escapes reserved HTML characters.']; $tests[] = ['<>&"\'', '&lt;&gt;&amp;&quot;&#039;', 'Escapes reserved HTML characters.'];
        $specialchars = $prophet->prophesize(MarkupInterface::class); $special_chars = $prophet->prophesize(MarkupInterface::class);
        $specialchars->__toString()->willReturn('<>&"\''); $special_chars->__toString()->willReturn('<>&"\'');
        $specialchars = $specialchars->reveal(); $special_chars = $special_chars->reveal();
        $tests[] = [$specialchars, '&lt;&gt;&amp;&quot;&#039;', 'Escapes reserved HTML characters even inside an object that implements MarkupInterface.']; $tests[] = [$special_chars, '&lt;&gt;&amp;&quot;&#039;', 'Escapes reserved HTML characters even inside an object that implements MarkupInterface.'];
        return $tests; return $tests;
        } }
        ......
        ...@@ -300,6 +300,7 @@ public function providerEscape() { ...@@ -300,6 +300,7 @@ public function providerEscape() {
        ['→', '→'], ['→', '→'],
        ['➼', '➼'], ['➼', '➼'],
        ['€', '€'], ['€', '€'],
        // cspell:disable-next-line
        ['Drup�al', "Drup\x80al"], ['Drup�al', "Drup\x80al"],
        ]; ];
        } }
        ......
        ...@@ -155,16 +155,16 @@ public function testGetEntityTypeFromClassNoMatch() { ...@@ -155,16 +155,16 @@ public function testGetEntityTypeFromClassNoMatch() {
        * @covers ::getEntityTypeFromClass * @covers ::getEntityTypeFromClass
        */ */
        public function testGetEntityTypeFromClassAmbiguous() { public function testGetEntityTypeFromClassAmbiguous() {
        $boskoop = $this->prophesize(EntityTypeInterface::class); $jazz = $this->prophesize(EntityTypeInterface::class);
        $boskoop->getOriginalClass()->willReturn('\Drupal\apple\Entity\Apple'); $jazz->getOriginalClass()->willReturn('\Drupal\apple\Entity\Apple');
        $boskoop->id()->willReturn('boskop'); $jazz->id()->willReturn('jazz');
        $gala = $this->prophesize(EntityTypeInterface::class); $gala = $this->prophesize(EntityTypeInterface::class);
        $gala->getOriginalClass()->willReturn('\Drupal\apple\Entity\Apple'); $gala->getOriginalClass()->willReturn('\Drupal\apple\Entity\Apple');
        $gala->id()->willReturn('gala'); $gala->id()->willReturn('gala');
        $this->setUpEntityTypeDefinitions([ $this->setUpEntityTypeDefinitions([
        'boskoop' => $boskoop, 'jazz' => $jazz,
        'gala' => $gala, 'gala' => $gala,
        ]); ]);
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment