3 namespace Drupal\Tests\user\Unit\Plugin\Action;
5 use Drupal\Tests\UnitTestCase;
8 * Provides a base class for user role action tests.
10 abstract class RoleUserTestBase extends UnitTestCase {
15 * @var \Drupal\user\UserInterface|\PHPUnit_Framework_MockObject_MockObject
20 * The user role entity type.
22 * @var \Drupal\Core\Entity\EntityTypeInterface|\PHPUnit_Framework_MockObject_MockObject
24 protected $userRoleEntityType;
29 protected function setUp() {
32 $this->account = $this
33 ->getMockBuilder('Drupal\user\Entity\User')
34 ->disableOriginalConstructor()
36 $this->userRoleEntityType = $this->getMock('Drupal\Core\Entity\EntityTypeInterface');