public function PurgerConfigFormTest::testSaveConfigurationSubmit in Purge 8.3
Same name in this branch
- 8.3 tests/modules/purge_purger_test/tests/src/Functional/PurgerConfigFormTest.php \Drupal\Tests\purge_purger_test\Functional\PurgerConfigFormTest::testSaveConfigurationSubmit()
- 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
- modules/
purge_ui/ tests/ src/ Functional/ Form/ PurgerConfigFormTest.php, line 38
Class
- PurgerConfigFormTest
- Tests the drop-in configuration form for purgers.
Namespace
Drupal\Tests\purge_ui\Functional\FormCode
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');
}