public function getUsersSitesFromAccess($access) { Piwik::checkUserHasSuperUserAccess(); $this->checkAccessType($access); $userSites = $this->model->getUsersSitesFromAccess($access); $userSites = $this->userFilter->filterLoginIndexedArray($userSites); return $userSites; }
/** * @expectedException \Exception * @expectedExceptionMessage UsersManager_ExceptionAccessValues */ public function testGetUsersSitesFromAccessWrongSite() { $this->api->getUsersSitesFromAccess('unknown'); }