protected function TransitionTest::setUp in Lightning Scheduler 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ TransitionTest.php, line 29
Class
- TransitionTest
- @group lightning_scheduler
Namespace
Drupal\Tests\lightning_scheduler\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('local_tasks_block');
$this
->createContentType([
'type' => 'page',
]);
$workflow = $this
->createEditorialWorkflow();
$workflow
->getTypePlugin()
->addEntityTypeAndBundle('node', 'page');
$workflow
->save();
$account = $this
->createUser([
'create page content',
'view own unpublished content',
'edit own page content',
'use editorial transition create_new_draft',
'use editorial transition review',
'use editorial transition publish',
'use editorial transition archive',
'schedule editorial transition publish',
'schedule editorial transition archive',
'view latest version',
'administer nodes',
]);
$this
->drupalLogin($account);
$this
->setUpTimeZone();
$this
->setTimeStep();
$this
->drupalGet('/node/add/page');
$this
->getSession()
->getPage()
->fillField('Title', $this
->randomString());
}