protected function IntegrationTest::configureResetFacetsProcessor in Facets 8
Tests configuring reset facets processor.
1 call to IntegrationTest::configureResetFacetsProcessor()
- 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 380
Class
- IntegrationTest
- Tests the overall functionality of the Facets summary admin UI.
Namespace
Drupal\Tests\facets_summary\FunctionalCode
protected function configureResetFacetsProcessor() {
$this
->assertSession()
->checkboxNotChecked('edit-facets-summary-settings-reset-facets-status');
$this
->drupalPostForm(NULL, [
'facets_summary_settings[reset_facets][status]' => TRUE,
], 'Save');
$this
->assertSession()
->checkboxChecked('edit-facets-summary-settings-reset-facets-status');
$this
->assertSession()
->pageTextContains(t('Facets Summary Owl has been updated.'));
$this
->assertSession()
->fieldExists('facets_summary_settings[reset_facets][settings][link_text]');
$this
->drupalPostForm(NULL, [
'facets_summary_settings[reset_facets][settings][link_text]' => 'Reset facets',
], 'Save');
$this
->assertSession()
->pageTextContains(t('Facets Summary Owl has been updated.'));
$this
->assertSession()
->fieldValueEquals('facets_summary_settings[reset_facets][settings][link_text]', 'Reset facets');
}