function AccessPermissionTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/modules/ user/ tests/ src/ Kernel/ Views/ AccessPermissionTest.php, line 58 
Class
- AccessPermissionTest
- Tests views perm access plugin.
Namespace
Drupal\Tests\user\Kernel\ViewsCode
protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('user');
  $this->installEntitySchema('node');
  // Create first UID1 so, the other users are not super-admin.
  $this->createUser([], NULL, FALSE, [
    'uid' => 1,
  ]);
  $this->webUser = $this->createUser();
  $this->normalUser = $this->createUser([
    'views_test_data test permission',
  ]);
  ViewTestData::createTestViews(static::class, [
    'user_test_views',
  ]);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
