Loading core/modules/node/tests/src/Functional/Views/FrontPageTest.php +0 −16 Original line number Diff line number Diff line Loading @@ -176,22 +176,6 @@ protected function assertNotInResultSet(ViewExecutable $view, array $not_expecte $this->assertEmpty($found_nids, $message); } /** * Tests the frontpage when logged in as admin. */ public function testAdminFrontPage() { // When a user with sufficient permissions is logged in, views_ui adds // contextual links to the homepage view. This verifies there are no errors. \Drupal::service('module_installer')->install(['views_ui']); // Log in root user with sufficient permissions. $this->drupalLogin($this->rootUser); // Test frontpage view. $this->drupalGet('node'); $this->assertSession()->statusCodeEquals(200); // Check that the frontpage view was rendered. $this->assertSession()->elementExists('css', '.views-element-container'); } /** * Tests the cache tags when using the "none" cache plugin. */ Loading Loading
core/modules/node/tests/src/Functional/Views/FrontPageTest.php +0 −16 Original line number Diff line number Diff line Loading @@ -176,22 +176,6 @@ protected function assertNotInResultSet(ViewExecutable $view, array $not_expecte $this->assertEmpty($found_nids, $message); } /** * Tests the frontpage when logged in as admin. */ public function testAdminFrontPage() { // When a user with sufficient permissions is logged in, views_ui adds // contextual links to the homepage view. This verifies there are no errors. \Drupal::service('module_installer')->install(['views_ui']); // Log in root user with sufficient permissions. $this->drupalLogin($this->rootUser); // Test frontpage view. $this->drupalGet('node'); $this->assertSession()->statusCodeEquals(200); // Check that the frontpage view was rendered. $this->assertSession()->elementExists('css', '.views-element-container'); } /** * Tests the cache tags when using the "none" cache plugin. */ Loading