You are here

protected function RoleUserTestBase::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php \Drupal\Tests\user\Unit\Plugin\Action\RoleUserTestBase::setUp()

Overrides UnitTestCase::setUp

File

core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php, line 34
Contains \Drupal\Tests\user\Unit\Plugin\Action\RoleUserTestBase.

Class

RoleUserTestBase
Provides a base class for user role action tests.

Namespace

Drupal\Tests\user\Unit\Plugin\Action

Code

protected function setUp() {
  parent::setUp();
  $this->account = $this
    ->getMockBuilder('Drupal\\user\\Entity\\User')
    ->disableOriginalConstructor()
    ->getMock();
  $this->userRoleEntityType = $this
    ->getMock('Drupal\\Core\\Entity\\EntityTypeInterface');
}