public function ManagerTest::setUp in Field Permissions 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Plugin/FieldPermissionType/ManagerTest.php \Drupal\Tests\field_permissions\Kernel\Plugin\FieldPermissionType\ManagerTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ Plugin/ FieldPermissionType/ ManagerTest.php, line 50
Class
- ManagerTest
- Integration tests for the field permission type plugin manager.
Namespace
Drupal\Tests\field_permissions\Kernel\Plugin\FieldPermissionTypeCode
public function setUp() {
parent::setUp();
$this
->installSchema('system', [
'sequences',
]);
$this
->installEntitySchema('user');
$this
->installEntitySchema('entity_test');
$this->fieldPermissionTypeManager = $this->container
->get('plugin.field_permissions.types.manager');
$this->account = $this
->createUser([
'cancel account',
]);
}