Same name and namespace in other branches
  1. 5.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest::testLoad()
  2. 6.0.x tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\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

src/Tests/AdminPagesTest.php, line 26

Classe

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

Namespace

Drupal\advagg\Tests

Code

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