You are here

protected function PanelsEverywhereTestHelper::setDefaultTheme in Panels Everywhere 7

Set a specific theme to be the default.

Parameters

string $theme: The theme to use as the default.

4 calls to PanelsEverywhereTestHelper::setDefaultTheme()
PanelsEverywhereTestHelper::checkBartikThemeDisabled in tests/PanelsEverywhereTestHelper.test
Check if the Bartik theme is not PE enabled.
PanelsEverywhereTestHelper::checkBartikThemeEnabled in tests/PanelsEverywhereTestHelper.test
Check if the Bartik theme is PE enabled.
PanelsEverywhereTestHelper::checkSevenThemeDisabled in tests/PanelsEverywhereTestHelper.test
Check if the Seven theme is not PE enabled.
PanelsEverywhereTestHelper::checkSevenThemeEnabled in tests/PanelsEverywhereTestHelper.test
Check if the Seven theme is PE enabled.

File

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

Class

PanelsEverywhereTestHelper
@file Some helper functions for the other tests.

Code

protected function setDefaultTheme($theme = 'bartik') {
  db_query("UPDATE {system} SET status=1 WHERE name=:name", array(
    ':name' => $theme,
  ));
  variable_set('theme_default', $theme);
  drupal_flush_all_caches();
}