diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php index b78fe175bcc0524e3fd586619319bd81bf2674d1..149a8f3b8fb25b0b8147992e31a75291e45872d4 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -727,7 +727,9 @@ public function testEditNonNodeEntityLink() { $entity_test_link = $entity_test_storage->create(['name' => 'correct link target']); $entity_test_link->save(); - $node = $this->drupalCreateNode(['wrong link target']); + // Create a node with the same ID as the test entity to ensure that the link + // doesn't match incorrectly. + $this->drupalCreateNode(['title' => 'wrong link target']); $correct_link = 'entity:entity_test/' . $entity_test_link->id(); $entity_test = $entity_test_storage->create([