You are here

protected function AjaxFormTestBase::assertAjaxDialog in Purge 8.3

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

Parameters

array $form: The form array.

1 call to AjaxFormTestBase::assertAjaxDialog()
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 93

Class

AjaxFormTestBase
Testbase for Ajax-based purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

protected function assertAjaxDialog(array $form) : void {
  $this
    ->assertSame(TRUE, isset($form['#attached']['library'][0]));
  $this
    ->assertSame('core/drupal.dialog.ajax', $form['#attached']['library'][0]);
}