function PanelsEverywhereSettingsTestCase::testAllThemes in Panels Everywhere 7
Ensure the on/off variable works.
File
- tests/
PanelsEverywhereSettingsTestCase.test, line 32 - Tests for the Panels Everywhere module's different settings.
Class
- PanelsEverywhereSettingsTestCase
- @file Tests for the Panels Everywhere module's different settings.
Code
function testAllThemes() {
// @todo Confirm that the Bartik theme is not PE-enabled.
$this
->checkBartikThemeDisabled();
// @todo Confirm that the Seven theme is not PE-enabled.
$this
->checkSevenThemeDisabled();
// Enable PE and limit it to just the Bartik theme.
variable_set('panels_everywhere_site_template_enabled', TRUE);
variable_set('panels_everywhere_provide_sample', TRUE);
variable_set('panels_everywhere_site_template_per_theme', FALSE);
// Clear the caches so that the default display kicks in.
drupal_flush_all_caches();
// @todo Confirm that the Bartik theme is PE-enabled.
$this
->checkBartikThemeEnabled();
// @todo Confirm that the Seven theme is PE-enabled.
$this
->checkSevenThemeEnabled();
}