You are here

class VarnishBundledPurgerFormTest in Varnish purger 8.2

Same name and namespace in other branches
  1. 8 src/Tests/VarnishBundledPurgerFormTest.php \Drupal\varnish_purger\Tests\VarnishBundledPurgerFormTest

Tests \Drupal\varnish_purger\Form\VarnishBundledPurgerForm.

@group varnish_purger

Hierarchy

Expanded class hierarchy of VarnishBundledPurgerFormTest

File

src/Tests/VarnishBundledPurgerFormTest.php, line 10

Namespace

Drupal\varnish_purger\Tests
View source
class VarnishBundledPurgerFormTest extends VarnishPurgerFormTestBase {

  /**
   * The full class of the form being tested.
   *
   * @var string
   */
  protected $formClass = 'Drupal\\varnish_purger\\Form\\VarnishBundledPurgerForm';

  /**
   * The plugin ID for which the form tested is rendered for.
   *
   * @var string
   */
  protected $plugin = 'varnishbundled';

  /**
   * The token group names the form is supposed to display.
   *
   * @see purge_tokens_token_info()
   *
   * @var string[]
   */
  protected $tokenGroups = [
    'invalidations',
  ];

}

Members

Namesort descending Modifiers Type Description Overrides
VarnishBundledPurgerFormTest::$formClass protected property The full class of the form being tested.
VarnishBundledPurgerFormTest::$plugin protected property The plugin ID for which the form tested is rendered for.
VarnishBundledPurgerFormTest::$tokenGroups protected property The token group names the form is supposed to display.
VarnishPurgerFormTestBase::$modules public static property Modules to enable.
VarnishPurgerFormTestBase::testFieldExistence public function Verify that the form contains all fields we require.
VarnishPurgerFormTestBase::testFormSubmit public function Test posting data to the HTTP Purger settings form.
VarnishPurgerFormTestBase::testFormValidation public function Test validating the data.
VarnishPurgerFormTestBase::testTokensHelp public function Tests \Drupal\varnish_purger\Form\VarnishPurgerFormBase::buildFormTokensHelp().