Пример #1
0
 /**
  * @expectedException Piwik\NoAccessException
  */
 public function testCheckUserHasSomeViewAccessWithEmptyAccess()
 {
     $access = new Access();
     $access->checkUserHasSomeViewAccess();
 }
Пример #2
0
 public function testCheckUserHasSomeViewAccessWithSuperUserAccess()
 {
     $access = new Access();
     $access->setSuperUserAccess(true);
     $access->checkUserHasSomeViewAccess();
 }