You are here

public function IntegrationTest::testAdminPages in Facets 8

Tests facets admin pages availability.

File

tests/src/Functional/IntegrationTest.php, line 62

Class

IntegrationTest
Tests the overall functionality of the Facets admin UI.

Namespace

Drupal\Tests\facets\Functional

Code

public function testAdminPages() {
  $pages = [
    '/admin/config/search/facets',
    '/admin/config/search/facets/add-facet',
    '/admin/config/search/facets/facet-sources/views_page/edit',
  ];
  foreach ($pages as $page) {
    $this
      ->drupalGet($page);
    $this
      ->assertSession()
      ->statusCodeEquals(200);
  }
}