You are here

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

PurgerAddFormTest
Tests \Drupal\purge_ui\Form\PurgerAddForm.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

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);
}