QueuerConfigFormTest.php in Purge 8.3
File
modules/purge_ui/tests/src/Functional/Form/QueuerConfigFormTest.php
View source
<?php
namespace Drupal\Tests\purge_ui\Functional\Form;
use Drupal\purge_queuer_test\Form\QueuerConfigForm;
use Drupal\Tests\purge_ui\Functional\Form\Config\QueuerConfigFormTestBase;
class QueuerConfigFormTest extends QueuerConfigFormTestBase {
public static $modules = [
'purge_queuer_test',
'purge_ui',
];
protected $pluginId = 'withform';
protected $formClass = QueuerConfigForm::class;
protected $formId = 'purge_queuer_test.configform';
public function testSaveConfigurationSubmit() : void {
$this
->drupalLogin($this->adminUser);
$this
->drupalGet($this
->getPath());
$this
->assertSession()
->fieldExists('textfield');
}
}