You are here

protected function PanelizerIpeTest::setUp in Panelizer 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Functional/PanelizerIpeTest.php \Drupal\Tests\panelizer\Functional\PanelizerIpeTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/PanelizerIpeTest.php, line 36

Class

PanelizerIpeTest
Confirm that the IPE functionality works.

Namespace

Drupal\Tests\panelizer\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->createContentType([
    'type' => $this->content_type,
  ]);
  $this->container
    ->get('panelizer')
    ->setPanelizerSettings('node', $this->content_type, 'default', [
    'enable' => TRUE,
    'allow' => FALSE,
    'custom' => TRUE,
    'default' => 'default',
  ]);

  // Reload all caches.
  $this
    ->rebuildAll();
}