You are here

protected function PanelizerIpeTest::setupContentType in Panelizer 8.3

Prep a content type for use with these tests.

5 calls to PanelizerIpeTest::setupContentType()
PanelizerIpeTest::testAdministerEntityContent in src/Tests/PanelizerIpeTest.php
@todo Confirm the 'administer panelizer $entity_type_id $bundle content' permission works.
PanelizerIpeTest::testAdministerEntityLayout in src/Tests/PanelizerIpeTest.php
@todo Confirm the 'administer panelizer $entity_type_id $bundle layout' permission works.
PanelizerIpeTest::testAdministerEntityRevert in src/Tests/PanelizerIpeTest.php
@todo Confirm the 'administer panelizer $entity_type_id $bundle revert' permission works.
PanelizerIpeTest::testAdministerPanelizer in src/Tests/PanelizerIpeTest.php
Confirm the 'administer panelizer' permission works.
PanelizerIpeTest::testAdminUser in src/Tests/PanelizerIpeTest.php
Test that the IPE functionality as user 1, which should cover all options.

File

src/Tests/PanelizerIpeTest.php, line 338

Class

PanelizerIpeTest
Confirm that the IPE functionality works.

Namespace

Drupal\panelizer\Tests

Code

protected function setupContentType() {

  // Log in as user 1.
  $this
    ->loginUser1();

  // Allow each node to have a customized display.
  $this
    ->panelize($this->content_type, NULL, [
    'panelizer[custom]' => TRUE,
  ]);

  // Logout so that a new user can log in.
  $this
    ->drupalLogout();
}