protected function ResponsivePreviewTestBase::assertResponsivePreviewLibrary in Responsive Theme Preview 8
Asserts whether responsive preview library is included.
2 calls to ResponsivePreviewTestBase::assertResponsivePreviewLibrary()
- ResponsivePreviewBlockTest::testBlock in tests/
src/ Functional/ ResponsivePreviewBlockTest.php - Tests responsive preview block.
- ResponsivePreviewToolbarTest::testToolbarIntegration in tests/
src/ Functional/ ResponsivePreviewToolbarTest.php - Tests that the toolbar integration works properly.
File
- tests/
src/ Functional/ ResponsivePreviewTestBase.php, line 101
Class
- ResponsivePreviewTestBase
- Responsive preview base test class.
Namespace
Drupal\Tests\responsive_preview\FunctionalCode
protected function assertResponsivePreviewLibrary() {
$this
->assertSession()
->responseContains('responsive_preview/js/responsive-preview.js');
$this
->assertSession()
->responseContains('responsive_preview/css/responsive-preview.icons.css');
$this
->assertSession()
->responseContains('responsive_preview/css/responsive-preview.module.css');
$this
->assertSession()
->responseContains('responsive_preview/css/responsive-preview.theme.css');
}