Пример #1
0
 /**
  * @When /^I login$/
  */
 public function iLogin()
 {
     try {
         $this->userSession = $this->authenticationManager->login($this->user);
     } catch (Exception $ex) {
         $this->lastException = $ex;
     }
 }
Пример #2
0
 /**
  * @test
  */
 public function shouldLogout()
 {
     $userSession = $this->mockUserSession();
     $this->userSessionRepository->shouldReceive('delete')->once()->with($userSession);
     $this->manager->logout($userSession);
 }