protected function TransitionTest::setUp in Lightning Workflow 8.3
Overrides BrowserTestBase::setUp
File
- modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php, line 41
Class
- TransitionTest
- Tests Lightning Scheduler's transition handling.
Namespace
Drupal\Tests\lightning_scheduler\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this
->drupalPlaceBlock('local_tasks_block');
$this
->setUpTimeZone();
$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
->setTimeStep();
$this
->drupalGet('/node/add/page');
$this
->getSession()
->getPage()
->fillField('Title', $this
->randomString());
}