Same name in other branches
  1. 5.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest::testLoad()
  2. 8.x-2.x src/Tests/AdminPagesTest.php \Drupal\advagg\Tests\AdminPagesTest::testLoad()
  3. 8.x-3.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest::testLoad()
  4. 8.x-4.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest::testLoad()

Tests that the main admin path returns correct contents.

Fichier

tests/src/Functional/AdminPagesTest.php, line 26

Classe

AdminPagesTest
Tests that all the admin path(s) return valid content.

Namespace

Drupal\Tests\advagg\Functional

Code

public function testLoad() {
    foreach ($this->routes as $route) {
        $this->drupalGet(Url::fromRoute($route));
        $this->assertSession()
            ->statusCodeEquals(200);
    }
}