You are here

public function QueuerConfigDialogFormTest::testSaveConfigurationSubmit in Purge 8.3

Tests save button presence/absence.

Overrides PluginConfigFormTestBase::testSaveConfigurationSubmit

File

modules/purge_ui/tests/src/Functional/Form/QueuerConfigDialogFormTest.php, line 46

Class

QueuerConfigDialogFormTest
Tests the drop-in configuration form for queuers (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');
}