Issue #3157919 by ultrabob, Hardik_Patel_12, shaktik, nijolawrence, alexpott, lauriii, Berdir, kiamlaluno: Remove unused variable $node from link module

merge-requests/2/head
Alex Pott 2020-07-20 10:13:35 +01:00
parent 700b1c92f1
commit f884044d46
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 3 additions and 1 deletions

View File

@ -727,7 +727,9 @@ class LinkFieldTest extends BrowserTestBase {
$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([