You are here

protected function IntegrationTest::configureShowCountProcessor in Facets 8

Tests configuring show_count processor.

1 call to IntegrationTest::configureShowCountProcessor()
IntegrationTest::testFramework in modules/facets_summary/tests/src/Functional/IntegrationTest.php
Tests the overall functionality of the Facets summary admin UI.

File

modules/facets_summary/tests/src/Functional/IntegrationTest.php, line 370

Class

IntegrationTest
Tests the overall functionality of the Facets summary admin UI.

Namespace

Drupal\Tests\facets_summary\Functional

Code

protected function configureShowCountProcessor() {
  $this
    ->assertSession()
    ->checkboxNotChecked('edit-facets-summary-settings-show-count-status');
  $this
    ->drupalPostForm(NULL, [
    'facets_summary_settings[show_count][status]' => TRUE,
  ], 'Save');
  $this
    ->assertSession()
    ->checkboxChecked('edit-facets-summary-settings-show-count-status');
  $this
    ->assertSession()
    ->pageTextContains(t('Facets Summary Owl has been updated.'));
}