You are here

protected function IntegrationTest::checkEmptyOverview in Facets 8

Tests that the facet overview is empty.

1 call to IntegrationTest::checkEmptyOverview()
IntegrationTest::testFramework in tests/src/Functional/IntegrationTest.php
Tests various operations via the Facets' admin UI.

File

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

Class

IntegrationTest
Tests the overall functionality of the Facets admin UI.

Namespace

Drupal\Tests\facets\Functional

Code

protected function checkEmptyOverview() {
  $facet_overview = '/admin/config/search/facets';
  $this
    ->drupalGet($facet_overview);
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // The list overview has Field: field_name as description. This tests on the
  // absence of that.
  $this
    ->assertSession()
    ->pageTextNotContains('Field:');

  // Check that the expected facet sources are shown.
  $this
    ->assertSession()
    ->pageTextContains('search_api:views_block__search_api_test_view__block_1');
  $this
    ->assertSession()
    ->pageTextContains('search_api:views_page__search_api_test_view__page_1');
}