Loading tests/src/Functional/LoadFrontPageTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ class LoadFrontPageTest extends BrowserTestBase { * * @var array */ public static $modules = [ protected static $modules = [ 'user_history', 'node', 'views', Loading @@ -40,7 +40,7 @@ class LoadFrontPageTest extends BrowserTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); // Set the front page to "/node". \Drupal::configFactory() Loading @@ -57,7 +57,7 @@ class LoadFrontPageTest extends BrowserTestBase { // Confirm that the page loaded correctly. $this->assertSession()->statusCodeEquals(200); // Confirm that the front page contains the standard text. $this->assertText('Welcome to Drupal'); $this->assertSession()->pageTextContains('Welcome to Drupal'); } } Loading
tests/src/Functional/LoadFrontPageTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ class LoadFrontPageTest extends BrowserTestBase { * * @var array */ public static $modules = [ protected static $modules = [ 'user_history', 'node', 'views', Loading @@ -40,7 +40,7 @@ class LoadFrontPageTest extends BrowserTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); // Set the front page to "/node". \Drupal::configFactory() Loading @@ -57,7 +57,7 @@ class LoadFrontPageTest extends BrowserTestBase { // Confirm that the page loaded correctly. $this->assertSession()->statusCodeEquals(200); // Confirm that the front page contains the standard text. $this->assertText('Welcome to Drupal'); $this->assertSession()->pageTextContains('Welcome to Drupal'); } }