You are here

public function QueuerConfigFormTest::testSaveConfigurationSubmit in Purge 8.3

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

Tests save button presence/absence.

Overrides PluginConfigFormTestBase::testSaveConfigurationSubmit

File

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

Class

QueuerConfigFormTest
Tests the drop-in configuration form for queuers.

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