Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->tokenStorage = $this->prophesize(TokenStorageInterface::class);
     $this->tokenStorage->getToken()->willReturn(true);
     // stands for a valid token
     $this->authorizationChecker = $this->prophesize(AuthorizationCheckerInterface::class);
     $this->securityChecker = new SecurityChecker($this->tokenStorage->reveal(), $this->authorizationChecker->reveal());
 }