You are here

class VarnishPurgerFormTest in Varnish purger 8

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

Tests \Drupal\varnish_purger\Form\VarnishPurgerForm.

@group varnish_purger

Hierarchy

Expanded class hierarchy of VarnishPurgerFormTest

File

src/Tests/VarnishPurgerFormTest.php, line 10

Namespace

Drupal\varnish_purger\Tests
View 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

Namesort descending Modifiers Type Description Overrides
VarnishPurgerFormTest::$formClass protected property The full class of the form being tested.
VarnishPurgerFormTest::$plugin protected property The plugin ID for which the form tested is rendered for.
VarnishPurgerFormTest::$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().