You are here

protected function ScriptManagerTest::assertScriptVisibile in Script Manager 8

Assert the script appears on the page.

1 call to ScriptManagerTest::assertScriptVisibile()
ScriptManagerTest::testScriptManagerConditions in tests/src/Functional/ScriptManagerTest.php
Test the visibility conditions.

File

tests/src/Functional/ScriptManagerTest.php, line 87

Class

ScriptManagerTest
Test the script manager module.

Namespace

Drupal\Tests\script_manager\Functional

Code

protected function assertScriptVisibile() {
  $this
    ->assertSession()
    ->pageTextContains($this->exampleScript
    ->getSnippet());
}