/** * @expectedException \Magento\Framework\Exception\AuthorizationException * @expectedMessage The role associated with the specified user cannot be found. */ public function testGetAllowedResourcesRoleNotFound() { $userIdentifier = $this->_createUserIdentifier(UserIdentifier::USER_TYPE_INTEGRATION); $this->_service->getAllowedResources($userIdentifier); }