.../tests/modules/locale_test/locale_test.module | 2 +- .../locale/tests/src/Kernel/LocaleBuildTest.php | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/modules/locale/tests/modules/locale_test/locale_test.module b/core/modules/locale/tests/modules/locale_test/locale_test.module index ccc9c7ef7e..4a0a786445 100644 --- a/core/modules/locale/tests/modules/locale_test/locale_test.module +++ b/core/modules/locale/tests/modules/locale_test/locale_test.module @@ -27,7 +27,7 @@ function locale_test_system_info_alter(&$info, Extension $file, $type) { } } - // Alter the name and the core version of the project. This should not effect + // Alter the name and the core version of the project. This should not affect // the locale project information. if (\Drupal::state()->get('locale.test_system_info_alter_name_core')) { if ($file->getName() == 'locale_test') { diff --git a/core/modules/locale/tests/src/Kernel/LocaleBuildTest.php b/core/modules/locale/tests/src/Kernel/LocaleBuildTest.php index fc4add6627..c1abda8c8e 100644 --- a/core/modules/locale/tests/src/Kernel/LocaleBuildTest.php +++ b/core/modules/locale/tests/src/Kernel/LocaleBuildTest.php @@ -5,7 +5,7 @@ use Drupal\KernelTests\KernelTestBase; /** - * Tests for building the translatable project information. + * Tests building the translatable project information. * * @group locale */ @@ -35,11 +35,11 @@ public function testBuildProjects() { // Confirm the project name and core value before the module is altered. $projects = locale_translation_build_projects(); - $this->assertEquals('locale_test', $projects['locale_test']->name); - $this->assertEquals('8.x', $projects['locale_test']->core); + $this->assertSame('locale_test', $projects['locale_test']->name); + $this->assertSame('8.x', $projects['locale_test']->core); $projects['locale_test']->langcode = 'de'; - $this->assertEquals('/8.x/locale_test/locale_test-1.2.de.po', locale_translation_build_server_pattern($projects['locale_test'], '/%core/%project/%project-%version.%language.po')); + $this->assertSame('/8.x/locale_test/locale_test-1.2.de.po', locale_translation_build_server_pattern($projects['locale_test'], '/%core/%project/%project-%version.%language.po')); // Alter both the name and core value of the project. \Drupal::state()->set('locale.test_system_info_alter_name_core', TRUE); @@ -48,17 +48,17 @@ public function testBuildProjects() { // Confirm the name and core value are changed in $module->info. $module = $module_list->get('locale_test'); - $this->assertEquals('locale_test_alter', $module->info['name']); - $this->assertEquals('8.6.7', $module->info['core']); - $this->assertEquals('locale_test', $module->getName()); + $this->assertSame('locale_test_alter', $module->info['name']); + $this->assertSame('8.6.7', $module->info['core']); + $this->assertSame('locale_test', $module->getName()); // Confirm the name and core value are not changed in the project. $projects = locale_translation_build_projects(); - $this->assertEquals('locale_test', $projects['locale_test']->name); - $this->assertEquals('8.x', $projects['locale_test']->core); + $this->assertSame('locale_test', $projects['locale_test']->name); + $this->assertSame('8.x', $projects['locale_test']->core); $projects['locale_test']->langcode = 'de'; - $this->assertEquals('/8.x/locale_test/locale_test-1.2.de.po', locale_translation_build_server_pattern($projects['locale_test'], '/%core/%project/%project-%version.%language.po')); + $this->assertSame('/8.x/locale_test/locale_test-1.2.de.po', locale_translation_build_server_pattern($projects['locale_test'], '/%core/%project/%project-%version.%language.po')); } }