function WebprofilerTestBase::getToken
Return the Webprofiler token.
Return value
null|string The page token
1 call to WebprofilerTestBase::getToken()
- WebprofilerTestBase::waitForToolbar in webprofiler/
tests/ src/ FunctionalJavascript/ WebprofilerTestBase.php - Wait until the toolbar is present on page.
File
-
webprofiler/
tests/ src/ FunctionalJavascript/ WebprofilerTestBase.php, line 37
Class
- WebprofilerTestBase
- Class WebprofilerTestBase.
Namespace
Drupal\Tests\webprofiler\FunctionalJavascriptCode
protected function getToken() {
$token = $this->getSession()
->getResponseHeader('X-Debug-Token');
if (NULL === $token) {
throw new PHPUnit_Framework_AssertionFailedError();
}
return $token;
}