protected function CorePagerReplacePaginationAJAXTest::setUp in Pagerer 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/CorePagerReplacePaginationAJAXTest.php \Drupal\Tests\pagerer\FunctionalJavascript\CorePagerReplacePaginationAJAXTest::setUp()
Overrides PaginationAJAXTest::setUp
File
- tests/
src/ FunctionalJavascript/ CorePagerReplacePaginationAJAXTest.php, line 24
Class
- CorePagerReplacePaginationAJAXTest
- Tests the click sorting AJAX functionality of Views exposed forms.
Namespace
Drupal\Tests\pagerer\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Add a 'core_replace' pagerer preset.
$this
->drupalGet($this->pagererAdmin . '/preset/add');
$this
->submitForm([
'label' => 'core_replace',
], t('Create'));
// Make 'core_replace' pagerer preset the global pager replacement.
\Drupal::configFactory()
->getEditable('pagerer.settings')
->set('core_override_preset', 'core_replace')
->save();
}