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