function ToolbarTest::testToolbarNotAppearsOnExcludedPath
Tests the toolbar not appears on excluded path.
File
-
webprofiler/
tests/ src/ FunctionalJavascript/ ToolbarTest.php, line 63
Class
- ToolbarTest
- Tests the JavaScript functionality of webprofiler.
Namespace
Drupal\Tests\webprofiler\FunctionalJavascriptCode
public function testToolbarNotAppearsOnExcludedPath() {
$this->loginForDashboard();
$this->drupalGet('admin/config/development/devel');
$token = $this->waitForToolbar();
$assert = $this->assertSession();
$assert->pageTextContains($token);
$assert->pageTextContains('Configure Webprofiler');
$this->config('webprofiler.config')
->set('exclude', '/admin/config/development/devel')
->save();
$this->drupalGet('admin/config/development/devel');
$this->assertSession()
->pageTextNotContains('sf-toolbar');
}