protected function ScriptManagerTest::assertScriptNotVisible in Script Manager 8
Assert the script doesn't appears on the page.
2 calls to ScriptManagerTest::assertScriptNotVisible()
- ScriptManagerTest::testScriptManagerConditions in tests/
src/ Functional/ ScriptManagerTest.php - Test the visibility conditions.
- ScriptManagerTest::testScriptManagerPositions in tests/
src/ Functional/ ScriptManagerTest.php - Test the different page positions.
File
- tests/
src/ Functional/ ScriptManagerTest.php, line 95
Class
- ScriptManagerTest
- Test the script manager module.
Namespace
Drupal\Tests\script_manager\FunctionalCode
protected function assertScriptNotVisible() {
$this
->assertSession()
->pageTextNotContains($this->exampleScript
->getSnippet());
}