public function PluginConfigFormTestBase::testCancelPresenceOrAbsence in Purge 8.3
Tests cancel button presence/absence.
File
- modules/
purge_ui/ tests/ src/ Functional/ Form/ Config/ PluginConfigFormTestBase.php, line 108
Class
- PluginConfigFormTestBase
- Testbase for purge_ui configuration forms (for plugins).
Namespace
Drupal\Tests\purge_ui\Functional\Form\ConfigCode
public function testCancelPresenceOrAbsence() : void {
$this
->drupalLogin($this->adminUser);
$this
->drupalGet($this
->getPath());
if ($this->dialogRouteTest) {
$this
->assertActionExists('edit-cancel', 'Cancel');
}
else {
$this
->assertActionNotExists('edit-cancel', 'Cancel');
}
}