Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions | Protected Attributes
RoleTest Class Reference
Inheritance diagram for RoleTest:

Public Member Functions

 testGetRoleUsers ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $_model = null
 

Detailed Description

@magentoAppArea adminhtml

Definition at line 11 of file RoleTest.php.

Member Function Documentation

◆ setUp()

setUp ( )
protected

Definition at line 18 of file RoleTest.php.

19  {
21  ->create(\Magento\Authorization\Model\Role::class);
22  }

◆ testGetRoleUsers()

testGetRoleUsers ( )

Definition at line 24 of file RoleTest.php.

25  {
26  $this->assertEmpty($this->_model->getRoleUsers());
27 
28  $this->_model->load(\Magento\TestFramework\Bootstrap::ADMIN_ROLE_NAME, 'role_name');
29  $this->assertNotEmpty($this->_model->getRoleUsers());
30  }

Field Documentation

◆ $_model

$_model = null
protected

Definition at line 16 of file RoleTest.php.


The documentation for this class was generated from the following file: