protected function setUp()
 {
     $this->controller = $this->createMock(AbstractCrudController::clazz());
     $this->authorizationChecker = $this->createMock('Symfony\\Component\\Security\\Core\\Authorization\\AuthorizationCheckerInterface');
     $this->interceptor = new SecurityControllerActionsInterceptor($this->authorizationChecker);
 }
Пример #2
0
 protected function setUp()
 {
     $this->provider = $this->createMock(ContributorInterface::CLAZZ);
     $this->mgr = new InterceptorsManager($this->provider);
     $this->controller = $this->createMock(AbstractCrudController::clazz());
 }