public function PurgerAddFormTest::testAddPresence in Purge 8.3
Tests that the right purgers are listed on the form.
See also
\Drupal\purge_ui\Form\PurgerAddForm::buildForm
\Drupal\purge_ui\Form\CloseDialogTrait::addPurger
File
- modules/
purge_ui/ tests/ src/ Functional/ Form/ PurgerAddFormTest.php, line 63
Class
Namespace
Drupal\Tests\purge_ui\Functional\FormCode
public function testAddPresence() : void {
$this
->initializePurgersService([
'a',
'withform',
'good',
]);
$this
->drupalLogin($this->adminUser);
$this
->drupalGet($this
->getPath());
$this
->assertSession()
->responseContains('Add');
$this
->assertSame(TRUE, count($this->purgePurgers
->getPluginsEnabled()) === 3);
}