public function ToolbarTest::testToolbarNotAppearsOnExcludedPath in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarNotAppearsOnExcludedPath()
- 8.2 webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\ToolbarTest::testToolbarNotAppearsOnExcludedPath()
- 4.x webprofiler/tests/src/FunctionalJavascript/ToolbarTest.php \Drupal\Tests\webprofiler\FunctionalJavascript\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');
}