You are here

public function PrivateAccessTest::setUp in Field Permissions 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Plugin/FieldPermissionType/PrivateAccessTest.php \Drupal\Tests\field_permissions\Unit\Plugin\FieldPermissionType\PrivateAccessTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/FieldPermissionType/PrivateAccessTest.php, line 32

Class

PrivateAccessTest
Tests the private access plugin.

Namespace

Drupal\Tests\field_permissions\Unit\Plugin\FieldPermissionType

Code

public function setUp() {
  parent::setUp();
  $storage = $this
    ->prophesize(FieldStorageConfigInterface::class);
  $this->plugin = new PrivateAccess([], 'private', [], $storage
    ->reveal());
}