diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php index 1fc644d..44afef2 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -8,6 +8,7 @@ use Drupal\entity_test\Entity\EntityTest; use Drupal\field\Entity\FieldConfig; use Drupal\link\LinkItemInterface; +use Drupal\node\NodeInterface; use Drupal\Tests\BrowserTestBase; use Drupal\field\Entity\FieldStorageConfig; @@ -95,8 +96,7 @@ public function testURLValidation() { // Create a node to test the link widget. $node = $this->drupalCreateNode(); - $restricted_node = $this->drupalCreateNode(['status' => NODE_NOT_PUBLISHED]); - $entity_test_no_label_access->save(); + $restricted_node = $this->drupalCreateNode(['status' => NodeInterface::NOT_PUBLISHED]); // Define some valid URLs (keys are the entered values, values are the // strings displayed to the user).