You are here

protected function PanelsEverywhereTestHelper::checkBartikThemeDisabled in Panels Everywhere 7

Check if the Bartik theme is not PE enabled.

2 calls to PanelsEverywhereTestHelper::checkBartikThemeDisabled()
PanelsEverywhereSettingsTestCase::testAllThemes in tests/PanelsEverywhereSettingsTestCase.test
Ensure the on/off variable works.
PanelsEverywhereSettingsTestCase::testPerThemeOption in tests/PanelsEverywhereSettingsTestCase.test
Ensure that the option for enabling PE for different themes works.

File

tests/PanelsEverywhereTestHelper.test, line 133
Some helper functions for the other tests.

Class

PanelsEverywhereTestHelper
@file Some helper functions for the other tests.

Code

protected function checkBartikThemeDisabled() {

  // Make sure Bartik is set as the default theme.
  $this
    ->setDefaultTheme('bartik');

  // Load the front page.
  $this
    ->drupalGet('<front>');
  $this
    ->assertResponse(200);

  // Look for DOM structures that indicate that PE is not being used.
  $this
    ->assertNoRaw('<div class="panel-flexible panels-flexible-new clearfix" id="page-wrapper">');
}