You are here

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\Config

Code

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');
  }
}