only in patch2: unchanged: --- a/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -95,10 +95,7 @@ public function testURLValidation() { // Create a node to test the link widget. $node = $this->drupalCreateNode(); - // Create an entity with restricted view access. - $entity_test_no_label_access = EntityTest::create([ - 'name' => 'forbid_access', - ]); + $restricted_node = $this->drupalCreateNode(['status' => NODE_NOT_PUBLISHED]); $entity_test_no_label_access->save(); // Define some valid URLs (keys are the entered values, values are the @@ -134,7 +131,7 @@ public function testURLValidation() { // Entity URI displayed as ER autocomplete value when displayed in a form. 'entity:node/1' => $node->label() . ' (1)', // URI for an entity that exists, but is not accessible by the user. - 'entity:entity_test/' . $entity_test_no_label_access->id() => '- Restricted access - (' . $entity_test_no_label_access->id() . ')', + 'entity:node/' . $restricted_node->id() => '- Restricted access - (' . $restricted_node->id() . ')', // URI for an entity that doesn't exist, but with a valid ID. 'entity:user/999999' => 'entity:user/999999', ];