You are here

protected function AjaxFormTestBase::assertAjaxCommandReloadConfigForm in Purge 8.3

Assert that a \Drupal\purge_ui\Form\ReloadConfigFormCommand is issued.

Parameters

\Drupal\Core\Ajax\AjaxResponse $ajax: The undecoded AjaxResponse object returned by the http_kernel.

9 calls to AjaxFormTestBase::assertAjaxCommandReloadConfigForm()
ProcessorAddFormTest::testAddSubmit in modules/purge_ui/tests/src/Functional/Form/ProcessorAddFormTest.php
Tests form submission results in the redirect command.
ProcessorDeleteFormTest::testDeleteProcessor in modules/purge_ui/tests/src/Functional/Form/ProcessorDeleteFormTest.php
Tests that 'Yes, delete..', deletes the processor and closes the window.
PurgerAddFormTest::testAddSubmit in modules/purge_ui/tests/src/Functional/Form/PurgerAddFormTest.php
Tests form submission results in the redirect command.
PurgerDeleteFormTest::testDeletePurger in modules/purge_ui/tests/src/Functional/Form/PurgerDeleteFormTest.php
Tests that 'Yes, delete..', deletes the purger and closes the window.
PurgerMoveFormDownTest::testMoveDown in modules/purge_ui/tests/src/Functional/Form/PurgerMoveFormDownTest.php
Tests that 'Yes!', moves the purger in order and closes the window.

... See full list

File

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

Class

AjaxFormTestBase
Testbase for Ajax-based purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

protected function assertAjaxCommandReloadConfigForm(AjaxResponse $ajax) : void {
  $this
    ->assertAjaxCommand($ajax, 'redirect');
}