function AnnounceFetcherUserTest::setUp
Same name in other branches
- 10 core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherUserTest.php \Drupal\Tests\announcements_feed\Kernel\AnnounceFetcherUserTest::setUp()
Overrides AnnounceTestBase::setUp
File
-
core/
modules/ announcements_feed/ tests/ src/ Kernel/ AnnounceFetcherUserTest.php, line 29
Class
- AnnounceFetcherUserTest
- @coversDefaultClass \Drupal\announcements_feed\AnnounceFetcher
Namespace
Drupal\Tests\announcements_feed\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installSchema('user', [
'users_data',
]);
// Setting current user.
$permissions = [
'access toolbar',
'access announcements',
];
$this->setUpCurrentUser([
'uid' => 1,
], $permissions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.