protected function TokenViewsFilterTest::setUp in Tokens in Views Filter Criteria 8
Overrides ViewTestBase::setUp
File
- tests/
src/ Functional/ TokenViewsFilterTest.php, line 33
Class
- TokenViewsFilterTest
- Tests token filter plugin functionality.
Namespace
Drupal\Tests\token_views_filter\FunctionalCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
if ($import_test_views) {
ViewTestData::createTestViews(get_class($this), [
'token_views_filter_test',
]);
}
$this
->enableViewsTestModule();
$this->adminUser = $this
->drupalCreateUser([
'administer views',
]);
$this
->drupalLogin($this->adminUser);
}