class VarnishPurgerFormTest in Varnish purger 8
Same name and namespace in other branches
- 8.2 src/Tests/VarnishPurgerFormTest.php \Drupal\varnish_purger\Tests\VarnishPurgerFormTest
Tests \Drupal\varnish_purger\Form\VarnishPurgerForm.
@group varnish_purger
Hierarchy
- class \Drupal\varnish_purger\Tests\VarnishPurgerFormTestBase extends \Drupal\purge_ui\Tests\PurgerConfigFormTestBase
- class \Drupal\varnish_purger\Tests\VarnishPurgerFormTest
Expanded class hierarchy of VarnishPurgerFormTest
File
- src/
Tests/ VarnishPurgerFormTest.php, line 10
Namespace
Drupal\varnish_purger\TestsView source
class VarnishPurgerFormTest extends VarnishPurgerFormTestBase {
/**
* The full class of the form being tested.
*
* @var string
*/
protected $formClass = 'Drupal\\varnish_purger\\Form\\VarnishPurgerForm';
/**
* The plugin ID for which the form tested is rendered for.
*
* @var string
*/
protected $plugin = 'varnish';
/**
* The token group names the form is supposed to display.
*
* @see purge_tokens_token_info()
*
* @var string[]
*/
protected $tokenGroups = [
'invalidation',
];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
VarnishPurgerFormTest:: |
protected | property | The full class of the form being tested. | |
VarnishPurgerFormTest:: |
protected | property | The plugin ID for which the form tested is rendered for. | |
VarnishPurgerFormTest:: |
protected | property | The token group names the form is supposed to display. | |
VarnishPurgerFormTestBase:: |
public static | property | Modules to enable. | |
VarnishPurgerFormTestBase:: |
public | function | Verify that the form contains all fields we require. | |
VarnishPurgerFormTestBase:: |
public | function | Test posting data to the HTTP Purger settings form. | |
VarnishPurgerFormTestBase:: |
public | function | Test validating the data. | |
VarnishPurgerFormTestBase:: |
public | function | Tests \Drupal\varnish_purger\Form\VarnishPurgerFormBase::buildFormTokensHelp(). |