You are here

public function PurgerConfigFormTest::testSaveConfigurationSubmit in Purge 8.3

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

Tests save button presence/absence.

Overrides PluginConfigFormTestBase::testSaveConfigurationSubmit

File

tests/modules/purge_purger_test/tests/src/Functional/PurgerConfigFormTest.php, line 64

Class

PurgerConfigFormTest
Tests \Drupal\purge_purger_test\Form\PurgerConfigForm.

Namespace

Drupal\Tests\purge_purger_test\Functional

Code

public function testSaveConfigurationSubmit() : void {
  $this
    ->drupalLogin($this->adminUser);
  $edit = [
    'textfield' => "The moose in the noose ate the goose who was loose.",
  ];
  $this
    ->drupalPostForm($this
    ->getPath(), $edit, 'Save configuration');
}