protected function PanelsEverywhereTest::enableSiteTemplate in Panels Everywhere 8.4
Enables the site_template & flush caches.
5 calls to PanelsEverywhereTest::enableSiteTemplate()
- PanelsEverywhereTest::testBlockPlacement in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that placed blocks actually show up.
- PanelsEverywhereTest::testCallingSiteTemplateConfigurationPath in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that visiting the path of site_template does not break anything.
- PanelsEverywhereTest::testCustomVariants in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that multiple variants work.
- PanelsEverywhereTest::testMixingRegularAndPanelsEverywherePages in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that using site_template for only part of the page breaks nothing.
- PanelsEverywhereTest::testSiteTemplate in tests/
src/ Functional/ PanelsEverywhereTest.php - Verify that enabling and disabling site_template.
File
- tests/
src/ Functional/ PanelsEverywhereTest.php, line 209
Class
- PanelsEverywhereTest
- Make sure that PE can be enabled.
Namespace
Drupal\Tests\panels_everywhere\FunctionalCode
protected function enableSiteTemplate() {
$this
->loadSiteTemplate()
->setStatus(TRUE)
->save();
// This ensures that the page-cache is empty for any test that follows.
// @todo: Remove once cache info is setup correctly
drupal_flush_all_caches();
}