You are here

public function ProcessorConfigFormTest::testSaveConfigurationSubmit in Purge 8.3

Same name in this branch
  1. 8.3 tests/modules/purge_processor_test/tests/src/Functional/ProcessorConfigFormTest.php \Drupal\Tests\purge_processor_test\Functional\ProcessorConfigFormTest::testSaveConfigurationSubmit()
  2. 8.3 modules/purge_ui/tests/src/Functional/Form/ProcessorConfigFormTest.php \Drupal\Tests\purge_ui\Functional\Form\ProcessorConfigFormTest::testSaveConfigurationSubmit()

Tests save button presence/absence.

Overrides PluginConfigFormTestBase::testSaveConfigurationSubmit

File

modules/purge_ui/tests/src/Functional/Form/ProcessorConfigFormTest.php, line 38

Class

ProcessorConfigFormTest
Tests the drop-in configuration form for processors.

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