You are here

protected function SchedulerDevelGenerateTest::setUp in Scheduler 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SchedulerDevelGenerateTest.php \Drupal\Tests\scheduler\Functional\SchedulerDevelGenerateTest::setUp()

Overrides SchedulerBrowserTestBase::setUp

File

tests/src/Functional/SchedulerDevelGenerateTest.php, line 26

Class

SchedulerDevelGenerateTest
Tests the Scheduler interaction with Devel Generate module.

Namespace

Drupal\Tests\scheduler\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Create a user with devel permission. Only 'administer devel_generate' is
  // actually required for these tests, but the others are useful.
  // 'access content overview' is needed for /admin/content  (but it is empty)
  // 'access content' is required to actually see the content list data.
  // 'view scheduled content' is required for /admin/content/scheduled.
  $this->develUser = $this
    ->drupalCreateUser([
    'administer devel_generate',
    'view scheduled content',
    'access content',
    'access content overview',
  ]);
}