function CronExampleTest::setUp
Same name in other branches
- 3.x modules/cron_example/tests/src/Functional/CronExampleTest.php \Drupal\Tests\cron_example\Functional\CronExampleTest::setUp()
- 8.x-1.x cron_example/tests/src/Functional/CronExampleTest.php \Drupal\Tests\cron_example\Functional\CronExampleTest::setUp()
Overrides ExamplesBrowserTestBase::setUp
File
-
modules/
cron_example/ tests/ src/ Functional/ CronExampleTest.php, line 33
Class
- CronExampleTest
- Test the functionality for the Cron Example.
Namespace
Drupal\Tests\cron_example\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create user. Search content permission granted for the search block to
// be shown.
$this->drupalLogin($this->drupalCreateUser([
'administer site configuration',
'access content',
]));
}