protected function TokenTreeTestTrait::assertTokenNotGroup in Token 8
Check to see if the specified token group is not present in the token browser.
Parameters
string $token_group: The name of the token group.
string $message: (optional) A message to display with the assertion.
1 call to TokenTreeTestTrait::assertTokenNotGroup()
- HelpPageTest::testHelpPageTree in tests/
src/ Functional/ Tree/ HelpPageTest.php - Tests the token browser on the token help page.
File
- tests/
src/ Functional/ Tree/ TokenTreeTestTrait.php, line 52
Class
- TokenTreeTestTrait
- Helper trait to assert tokens in token tree browser.
Namespace
Drupal\Tests\token\Functional\TreeCode
protected function assertTokenNotGroup($token_group, $message = '') {
$groups = $this
->getTokenGroups();
if (!$message) {
$message = "Token group {$token_group} not found.";
}
$this
->assertNotContains($token_group, $groups, $message);
}