protected function AccessTest::setUp in Drupal 9
Same name in this branch
- 9 core/modules/file/tests/src/Kernel/AccessTest.php \Drupal\Tests\file\Kernel\AccessTest::setUp()
- 9 core/modules/views/tests/src/Functional/Plugin/AccessTest.php \Drupal\Tests\views\Functional\Plugin\AccessTest::setUp()
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/Plugin/AccessTest.php \Drupal\Tests\views\Functional\Plugin\AccessTest::setUp()
- 10 core/modules/views/tests/src/Functional/Plugin/AccessTest.php \Drupal\Tests\views\Functional\Plugin\AccessTest::setUp()
Overrides ViewTestBase::setUp
File
- core/
modules/ views/ tests/ src/ Functional/ Plugin/ AccessTest.php, line 51
Class
- AccessTest
- Tests pluggable access for views.
Namespace
Drupal\Tests\views\Functional\PluginCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp($import_test_views);
$this
->enableViewsTestModule();
ViewTestData::createTestViews(static::class, [
'views_test_data',
]);
$this->webUser = $this
->drupalCreateUser();
$normal_role = $this
->drupalCreateRole([]);
$this->normalUser = $this
->drupalCreateUser([
'views_test_data test permission',
]);
$this->normalUser
->addRole($normal_role);
// @todo when all the plugin information is cached make a reset function and
// call it here.
}