public function PurgerDeleteFormTest::testNoSubmit in Purge 8.3
Tests "No" cancel button form submit.
File
- modules/
purge_ui/ tests/ src/ Functional/ Form/ PurgerDeleteFormTest.php, line 64
Class
Namespace
Drupal\Tests\purge_ui\Functional\FormCode
public function testNoSubmit() : void {
$this
->drupalLogin($this->adminUser);
$ajax = $this
->postAjaxForm([], 'No');
$this
->assertAjaxCommandCloseModalDialog($ajax);
$this
->assertAjaxCommandsTotal($ajax, 1);
}