You are here

public function PurgerConfigDialogFormTest::testSaveConfigurationSubmit in Purge 8.3

Tests save button presence/absence.

Overrides PluginConfigFormTestBase::testSaveConfigurationSubmit

File

modules/purge_ui/tests/src/Functional/Form/PurgerConfigDialogFormTest.php, line 51

Class

PurgerConfigDialogFormTest
Tests the drop-in configuration form for purgers (modal dialog).

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

public function testSaveConfigurationSubmit() : void {

  // Since the stub form under test has no form submission
  // implemented, we verify the presence of its textfield
  // instead. Tests for real configuration form must of
  // course test validation and submit thoroughly.
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSession()
    ->fieldExists('textfield');
}