Example #1
0
 /**
  * @covers \Magento\Authorization\Model\Rules::saveRel
  * @magentoDbIsolation enabled
  */
 public function testSetAllowForAllResources()
 {
     $resources = array('Magento_Adminhtml::all');
     $this->_model->setRoleId(1)->setResources($resources)->saveRel();
     $expectedPermissions = ['Magento_Adminhtml::all'];
     $this->_checkExistingPermissions($expectedPermissions);
 }