public function EntityAccessCheckTest::setUp in Permissions by Term 8
Same name and namespace in other branches
- 8.2 modules/permissions_by_entity/tests/src/Kernel/EntityAccessCheckTest.php \Drupal\Tests\permissions_by_entity\Kernel\EntityAccessCheckTest::setUp()
Overrides KernelTestBase::setUp
File
- modules/
permissions_by_entity/ tests/ src/ Kernel/ EntityAccessCheckTest.php, line 73
Class
- EntityAccessCheckTest
- Class EntityAccessCheckTest
Namespace
Drupal\Tests\permissions_by_entity\KernelCode
public function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installSchema('system', [
'key_value_expire',
'sequences',
]);
$this
->installEntitySchema('taxonomy_term');
$this
->installEntitySchema('test_entity');
$this
->installConfig([
'language',
'permissions_by_term',
]);
$this
->installSchema('permissions_by_term', 'permissions_by_term_user');
$this
->installSchema('permissions_by_term', 'permissions_by_term_role');
$this->accessStorage = $this->container
->get('permissions_by_term.access_storage');
$this->accessChecker = $this->container
->get('permissions_by_entity.access_checker');
$this
->setupUsersAndTerms();
$this
->createNodesForEachUser();
}