diff --git a/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php b/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php index f3bc897..bcdf481 100644 --- a/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php +++ b/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php @@ -32,8 +32,8 @@ protected function setUp() { /** * Helper to test toggling the summary area. */ - protected function summaryToggleHelper() { - $this->drupalGet('/node/add/page'); + protected function assertSummaryToggle() { + $this->drupalGet('node/add/page'); $widget = $this->getSession()->getPage()->findById('edit-body-wrapper'); $summary_field = $widget->findField('edit-body-0-summary'); @@ -55,7 +55,7 @@ protected function summaryToggleHelper() { */ public function testTextSummaryBehavior() { // Test with field defaults. - $this->summaryToggleHelper(); + $this->assertSummaryToggle(); // Repeat test with non-empty field description. // @see https://www.drupal.org/node/2626716 @@ -63,7 +63,7 @@ public function testTextSummaryBehavior() { $body_field->set('description', 'Text with Summary field description.'); $body_field->save(); - $this->summaryToggleHelper(); + $this->assertSummaryToggle(); // Test summary is shown when non-empty. $node = $this->createNode([ @@ -76,7 +76,7 @@ public function testTextSummaryBehavior() { ], ]); - $this->drupalGet('/node/' . $node->id() . '/edit'); + $this->drupalGet('node/' . $node->id() . '/edit'); $page = $this->getSession()->getPage(); $summary_field = $page->findField('edit-body-0-summary');