You are here

public function VarnishPurgerFormTestBase::testTokensHelp in Varnish purger 8.2

Same name and namespace in other branches
  1. 8 src/Tests/VarnishPurgerFormTestBase.php \Drupal\varnish_purger\Tests\VarnishPurgerFormTestBase::testTokensHelp()

Tests \Drupal\varnish_purger\Form\VarnishPurgerFormBase::buildFormTokensHelp().

File

src/Tests/VarnishPurgerFormTestBase.php, line 51

Class

VarnishPurgerFormTestBase
Testbase for testing \Drupal\varnish_purger\Form\VarnishPurgerFormBase.

Namespace

Drupal\varnish_purger\Tests

Code

public function testTokensHelp() {
  $this
    ->drupalLogin($this->admin_user);
  $this
    ->drupalGet($this->route);
  $this
    ->assertText('Tokens');
  foreach ($this->tokenGroups as $token_group) {
    $this
      ->assertRaw('<code>[' . $token_group . ':');
  }
}