diff --git a/core/modules/config/src/Tests/ConfigDiffTest.php b/core/modules/config/src/Tests/ConfigDiffTest.php index 6f11fce..4af760b 100644 --- a/core/modules/config/src/Tests/ConfigDiffTest.php +++ b/core/modules/config/src/Tests/ConfigDiffTest.php @@ -53,7 +53,7 @@ function testDiff() { $diff = \Drupal::service('config.manager')->diff($active, $sync, $config_name); $edits = $diff->getEdits(); $this->assertEqual($edits[0]->type, 'change', 'The first item in the diff is a change.'); - $this->assertEqual($edits[0]->orig[0], $change_key . ': ' . $original_data[$change_key], "The active value for key '$change_key' is '$original_data'."); + $this->assertEqual($edits[0]->orig[0], $change_key . ': ' . $original_data[$change_key], "The active value for key '$change_key' is '$original_data[$change_key]'."); $this->assertEqual($edits[0]->closing[0], $change_key . ': ' . $change_data, "The sync value for key '$change_key' is '$change_data'."); // Reset data back to original, and remove a key diff --git a/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php b/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php index be71b06..866c298 100644 --- a/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php +++ b/core/modules/config/src/Tests/ConfigImportRenameValidationTest.php @@ -110,7 +110,7 @@ public function testRenameValidation() { catch (ConfigImporterException $e) { $this->pass('Expected ConfigImporterException thrown when a renamed configuration entity does not match the existing entity type.'); $expected = array( - 'Entity type mismatch on rename. node_type not equal to config_test for existing configuration node.type.' . $content_type->id() . ' and staged configuration config_test.dynamic.' . $test_entity_id + 'Entity type mismatch on rename. node_type not equal to config_test for existing configuration node.type.' . $content_type->id() . ' and staged configuration config_test.dynamic.' . $test_entity_id . '.' ); $this->assertEqual($expected, $this->configImporter->getErrors()); } @@ -153,7 +153,7 @@ public function testRenameSimpleConfigValidation() { catch (ConfigImporterException $e) { $this->pass('Expected ConfigImporterException thrown when simple configuration is renamed.'); $expected = array( - 'Rename operation for simple configuration. Existing configuration config_test and staged configuration config_test.new.', + 'Rename operation for simple configuration. Existing configuration config_test.old and staged configuration config_test.new.', ); $this->assertEqual($expected, $this->configImporter->getErrors()); } diff --git a/core/modules/system/src/Tests/Entity/EntityTranslationTest.php b/core/modules/system/src/Tests/Entity/EntityTranslationTest.php index 66281d1..47f8792 100644 --- a/core/modules/system/src/Tests/Entity/EntityTranslationTest.php +++ b/core/modules/system/src/Tests/Entity/EntityTranslationTest.php @@ -107,7 +107,7 @@ protected function doTestEntityLanguageMethods($entity_type) { } // Try to get a not available translation. - $this->assertNull($entity->getTranslation($this->langcodes[2])->get($this->fieldName)->value, "$entity_type: A translation that is not available is NULL."); + $this->assertNull($entity->addTranslation($this->langcodes[2])->get($this->fieldName)->value, "$entity_type: A translation that is not available is NULL."); // Try to get a value using an invalid language code. $message = 'Getting an invalid translation results in an error.';