public function FloodUnblockUiPageTest::setUp in Flood Unblock 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FloodUnblockUiPageTest.php \Drupal\Tests\flood_unblock\Functional\FloodUnblockUiPageTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ FloodUnblockUiPageTest.php, line 33
Class
- FloodUnblockUiPageTest
- Tests that the Flood Unblock UI pages are reachable.
Namespace
Drupal\Tests\flood_unblock\FunctionalCode
public function setUp() {
parent::setUp();
$this->admin_user = $this
->drupalCreateUser([
'access flood unblock',
]);
$this->simple_user = $this
->drupalCreateUser();
// Flood backends need a request object. Create a dummy one and insert it
// to the container.
$request = Request::createFromGlobals();
$this->container
->get('request_stack')
->push($request);
}