diff --git a/core/modules/text/tests/src/FunctionalJavascript/TextIntegrationTest.php b/core/modules/text/tests/src/FunctionalJavascript/TextIntegrationTest.php index 5692a28..82e77fa 100644 --- a/core/modules/text/tests/src/FunctionalJavascript/TextIntegrationTest.php +++ b/core/modules/text/tests/src/FunctionalJavascript/TextIntegrationTest.php @@ -17,13 +17,6 @@ class TextIntegrationTest extends JavascriptTestBase { public static $modules = ['text', 'node']; /** - * An authenticated user. - * - * @var \Drupal\user\UserInterface - */ - protected $webUser; - - /** * Tests if the Edit summary link is displayed when the field has Help text. */ public function testSummaryLinkWhenHelpText() { @@ -38,11 +31,11 @@ public function testSummaryLinkWhenHelpText() { $this->createContentType(['type' => 'page']); // Log in a user who can create 'page' nodes. - $this->webUser = $this->drupalCreateUser(['create page content']); - $this->drupalLogin($this->webUser); + $user = $this->drupalCreateUser(['create page content']); + $this->drupalLogin($user); - // Create basic Page. - $this->createNode(); + // Go to "Page" node creation page. + $this->drupalGet('node/add/page'); $this->clickLink(t('Edit')); // Assert Edit summary link presence.