You are here

protected function AjaxFormTestBase::assertNoAjaxDialog in Purge 8.3

Assert that the given form array has not loaded the Ajax dialog library.

Parameters

array $form: The form array.

1 call to AjaxFormTestBase::assertNoAjaxDialog()
AjaxFormTestBase::testAjaxDialog in modules/purge_ui/tests/src/Functional/Form/AjaxFormTestBase.php
Tests that forms have the Ajax dialog library loaded.

File

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

Class

AjaxFormTestBase
Testbase for Ajax-based purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

protected function assertNoAjaxDialog(array $form) : void {
  $this
    ->assertSame(FALSE, isset($form['#attached']['library'][0]));
}