diff --git a/core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php b/core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php index 068d77bb415..f24f456ced1 100644 --- a/core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php +++ b/core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php @@ -97,7 +97,7 @@ class CommentStatisticsUnitTest extends UnitTestCase { public function testRead() { $this->calls_to_fetch = 0; $results = $this->commentStatistics->read(['1' => 'boo', '2' => 'foo'], 'snafus'); - $this->assertEquals($results, ['something', 'something-else']); + $this->assertEquals(['something', 'something-else'], $results); } /** diff --git a/core/modules/dblog/tests/src/Functional/DbLogTest.php b/core/modules/dblog/tests/src/Functional/DbLogTest.php index 33550b37f8d..9853314eeb7 100644 --- a/core/modules/dblog/tests/src/Functional/DbLogTest.php +++ b/core/modules/dblog/tests/src/Functional/DbLogTest.php @@ -876,9 +876,9 @@ class DbLogTest extends BrowserTestBase { $this->drupalGet('admin/reports/dblog'); $entries = $this->getLogEntries(); - $this->assertEquals($entries[0]['message'], 'Third Entry #0'); - $this->assertEquals($entries[1]['message'], 'Second Entry #0'); - $this->assertEquals($entries[2]['message'], 'First Entry #0'); + $this->assertEquals('Third Entry #0', $entries[0]['message']); + $this->assertEquals('Second Entry #0', $entries[1]['message']); + $this->assertEquals('First Entry #0', $entries[2]['message']); } /** diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldTest.php index 0ab9010c76a..1ad4c722cff 100644 --- a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldTest.php +++ b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldTest.php @@ -182,10 +182,10 @@ class MigrateFieldTest extends MigrateDrupal7TestBase { }, iterator_to_array($migration->getIdMap()->getMessages())); sort($errors); $this->assertCount(4, $errors); - $this->assertEquals($errors[0], 'Can\'t migrate source field field_text_long_plain_filtered configured with both plain text and filtered text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text'); - $this->assertEquals($errors[1], 'Can\'t migrate source field field_text_plain_filtered configured with both plain text and filtered text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text'); - $this->assertEquals($errors[2], 'Can\'t migrate source field field_text_sum_plain of type text_with_summary configured with plain text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text'); - $this->assertEquals($errors[3], 'Can\'t migrate source field field_text_sum_plain_filtered of type text_with_summary configured with plain text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text'); + $this->assertEquals('Can\'t migrate source field field_text_long_plain_filtered configured with both plain text and filtered text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text', $errors[0]); + $this->assertEquals('Can\'t migrate source field field_text_plain_filtered configured with both plain text and filtered text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text', $errors[1]); + $this->assertEquals('Can\'t migrate source field field_text_sum_plain of type text_with_summary configured with plain text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text', $errors[2]); + $this->assertEquals('Can\'t migrate source field field_text_sum_plain_filtered of type text_with_summary configured with plain text processing. See https://www.drupal.org/docs/8/upgrade/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8#plain-text', $errors[3]); } } diff --git a/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php b/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php index 17cc3e45072..4c84a7a12a6 100644 --- a/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php +++ b/core/modules/field_ui/tests/src/FunctionalJavascript/ManageDisplayTest.php @@ -182,7 +182,7 @@ class ManageDisplayTest extends WebDriverTestBase { $id = 'node.' . $this->type . '.default'; /** @var \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display */ $display = $display_storage->loadUnchanged($id); - $this->assertEquals($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_field_formatter_third_party_settings_form'), 'foo'); + $this->assertEquals('foo', $display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_field_formatter_third_party_settings_form')); $this->assertContains('field_third_party_test', $display->calculateDependencies()->getDependencies()['module'], 'The display has a dependency on field_third_party_test module.'); // Change the formatter to an empty setting and validate it's initialized @@ -329,7 +329,7 @@ class ManageDisplayTest extends WebDriverTestBase { /** @var \Drupal\Core\Entity\Display\EntityFormDisplayInterface $display */ $display = $form_storage->loadUnchanged('node.' . $this->type . '.default'); - $this->assertEquals($display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_widget_third_party_settings_form'), 'foo'); + $this->assertEquals('foo', $display->getRenderer('field_test')->getThirdPartySetting('field_third_party_test', 'field_test_widget_third_party_settings_form')); $this->assertContains('field_third_party_test', $display->calculateDependencies()->getDependencies()['module'], 'Form display does not have a dependency on field_third_party_test module.'); // Creates a new field that can not be used with the multiple formatter. diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php index d471600a777..f26a1b4286f 100644 --- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php +++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php @@ -937,116 +937,116 @@ www.example.com with a newline in comments --> public function testHtmlCorrectorFilter() { // Tag closing. $f = Html::normalize('

text'); - $this->assertEquals($f, '

text

', 'HTML corrector -- tag closing at the end of input.'); + $this->assertEquals('

text

', $f, 'HTML corrector -- tag closing at the end of input.'); $f = Html::normalize('

text

text'); - $this->assertEquals($f, '

text

text

', 'HTML corrector -- tag closing.'); + $this->assertEquals('

text

text

', $f, 'HTML corrector -- tag closing.'); $f = Html::normalize("