PanelizerIntegrationTest.php in Panels 8.3
File
panels_ipe/tests/src/FunctionalJavascript/PanelizerIntegrationTest.php
View source
<?php
namespace Drupal\Tests\panels_ipe\FunctionalJavascript;
use Drupal\simpletest\ContentTypeCreationTrait;
class PanelizerIntegrationTest extends PanelsIPETestBase {
use ContentTypeCreationTrait;
public static $modules = [
'field_ui',
'node',
'panels',
'panels_ipe',
'panelizer',
'system',
];
protected function setUp() {
parent::setUp();
$admin_user = $this
->drupalCreateUser([
'access content',
'access panels in-place editing',
'administer blocks',
'administer content types',
'administer nodes',
'administer node display',
'administer panelizer',
]);
$this
->drupalLogin($admin_user);
$this
->createContentType([
'type' => 'page',
'name' => 'Basic Page',
]);
$this
->drupalGet('admin/structure/types/manage/page/display');
$this
->submitForm([
'panelizer[enable]' => 1,
], t('Save'));
$this
->drupalGet('node/add/page');
$this
->submitForm([
'title[0][value]' => 'Test Node',
], t('Save and publish'));
$this->test_route = 'node/1';
}
}