You are here

protected function PanelsEverywhereTestHelper::checkBartikThemeEnabled in Panels Everywhere 7

Check if the Bartik theme is PE enabled.

2 calls to PanelsEverywhereTestHelper::checkBartikThemeEnabled()
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 118
Some helper functions for the other tests.

Class

PanelsEverywhereTestHelper
@file Some helper functions for the other tests.

Code

protected function checkBartikThemeEnabled() {

  // 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 being used.
  $this
    ->assertRaw('<div class="panel-flexible panels-flexible-new clearfix" id="page-wrapper">');
}