You are here

public function AdminPagesTest::testLoad in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/AdminPagesTest.php \Drupal\Tests\advagg\Functional\AdminPagesTest::testLoad()

Tests that the main admin path returns correct contents.

File

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

Class

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);
  }
}