You are here

protected function ResponsivePreviewTestBase::assertNoResponsivePreviewLibrary in Responsive Theme Preview 8

Asserts whether responsive preview library is not included.

2 calls to ResponsivePreviewTestBase::assertNoResponsivePreviewLibrary()
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 115

Class

ResponsivePreviewTestBase
Responsive preview base test class.

Namespace

Drupal\Tests\responsive_preview\Functional

Code

protected function assertNoResponsivePreviewLibrary() {
  $this
    ->assertSession()
    ->responseNotContains('responsive_preview/js/responsive-preview.js');
  $this
    ->assertSession()
    ->responseNotContains('responsive_preview/css/responsive-preview.icons.css');
  $this
    ->assertSession()
    ->responseNotContains('responsive_preview/css/responsive-preview.module.css');
  $this
    ->assertSession()
    ->responseNotContains('responsive_preview/css/responsive-preview.theme.css');
}