public function getUsersAccessFromSite($idSite) { Piwik::checkUserHasAdminAccess($idSite); $usersAccess = $this->model->getUsersAccessFromSite($idSite); $usersAccess = $this->userFilter->filterLoginIndexedArray($usersAccess); return $usersAccess; }
/** * @expectedException \Exception */ public function testGetUsersAccessFromSiteWrongIdSite() { $this->api->getUsersAccessFromSite(1); }