You are here

public function RequiredByRoleTest::setUp in Required by role 8

Caching the plugin instance in the $plugin property.

Overrides UnitTestCase::setUp

File

src/Tests/Plugin/Required/RequiredByRoleTest.php, line 48
Contains \Drupal\required_by_role\Tests\Plugin\Required\RequiredByRoleTest.

Class

RequiredByRoleTest
Tests the requird_by_role plugin.

Namespace

Drupal\required_by_role\Tests\Plugin\Required

Code

public function setUp() {
  $this->plugin = $this
    ->getMockBuilder('Drupal\\required_by_role\\Plugin\\Required\\RequiredByRole')
    ->disableOriginalConstructor()
    ->setMethods(NULL)
    ->getMock();
}