public function PanelsEverywhereTest::testMixingRegularAndPanelsEverywherePages in Panels Everywhere 8.4
Verify that using site_template for only part of the page breaks nothing.
File
- tests/
src/ Functional/ PanelsEverywhereTest.php, line 112
Class
- PanelsEverywhereTest
- Make sure that PE can be enabled.
Namespace
Drupal\Tests\panels_everywhere\FunctionalCode
public function testMixingRegularAndPanelsEverywherePages() {
$this
->enableSiteTemplate();
$this
->checkFrontPageWorks();
$this
->assertSession()
->pageTextNotContains('No front page content has been created yet.');
$siteTemplate = $this
->loadSiteTemplate();
$defaultVariant = $siteTemplate
->getVariant('panels_everywhere');
$this
->addPathCondition($defaultVariant, '<front>', TRUE);
$defaultVariant
->save();
// @todo: Remove once cache info is setup correctly
drupal_flush_all_caches();
$this
->checkFrontPageWorks();
$this
->assertSession()
->pageTextContains('No front page content has been created yet.');
$this
->drupalGet('/user/login');
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertSession()
->pageTextNotContains('Create new account');
}