protected function WebprofilerTestBase::getToken in Devel 8.2
Same name and namespace in other branches
- 8 webprofiler/tests/src/FunctionalJavascript/WebprofilerTestBase.php \Drupal\Tests\webprofiler\FunctionalJavascript\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;
}