You are here

public function HttpPurgerConfigFormTestBase::testTokensHelp in Generic HTTP Purger 8

Tests ::buildFormTokensHelp().

See also

\Drupal\purge_purger_http\Form\HttpPurgerFormBase::buildFormTokensHelp

File

tests/src/Functional/HttpPurgerConfigFormTestBase.php, line 68

Class

HttpPurgerConfigFormTestBase
Testbase for testing \Drupal\purge_purger_http\Form\HttpPurgerFormBase.

Namespace

Drupal\Tests\purge_purger_http\Functional

Code

public function testTokensHelp() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSession()
    ->pageTextContains('Tokens');
  foreach ($this->tokenGroups as $token_group) {
    $this
      ->assertRaw('<code>[' . $token_group . ':');
  }
}