public function VarnishPurgerFormTestBase::testTokensHelp in Varnish purger 8
Same name and namespace in other branches
- 8.2 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\TestsCode
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 . ':');
}
}