You are here

public function AjaxFormTestBase::testAjaxDialog in Purge 8.3

Tests that forms have the Ajax dialog library loaded.

File

modules/purge_ui/tests/src/Functional/Form/AjaxFormTestBase.php, line 213

Class

AjaxFormTestBase
Testbase for Ajax-based purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

public function testAjaxDialog() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $form = $this
    ->getBuiltForm();
  if ($this
    ->shouldReturnAjaxProperties()) {
    $this
      ->assertAjaxDialog($form);
  }
  else {
    $this
      ->assertNoAjaxDialog($form);
  }
}