private function JsAssetTest::assertTextInHeader in Mautic Integration 8
1 call to JsAssetTest::assertTextInHeader()
- JsAssetTest::testPathWithSnippetHeader in tests/
src/ Functional/ JsAssetTest.php - Test the path with the js snippet in the header
File
- tests/
src/ Functional/ JsAssetTest.php, line 130
Class
- JsAssetTest
- Functional tests for the Mautic module.
Namespace
Drupal\Tests\mautic\FunctionalCode
private function assertTextInHeader($text, $html) {
$textPosition = strpos($html, $text);
$endHeaderPosition = strpos($html, '</header>');
$this
->assertLessThan($endHeaderPosition, $textPosition);
}