protected function PanelsEverywhereTestHelper::checkSevenThemeDisabled in Panels Everywhere 7
Check if the Seven theme is not PE enabled.
2 calls to PanelsEverywhereTestHelper::checkSevenThemeDisabled()
- 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 163 - Some helper functions for the other tests.
Class
- PanelsEverywhereTestHelper
- @file Some helper functions for the other tests.
Code
protected function checkSevenThemeDisabled() {
// Make sure Seven is set as the default theme.
$this
->setDefaultTheme('seven');
// 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">');
}