Example #1
0
 public function testRenewCookieWhenCannotProcessPersistentData()
 {
     $this->helperMock->expects($this->once())->method('canProcess')->with($this->observerMock)->will($this->returnValue(false));
     $this->helperMock->expects($this->never())->method('isEnabled');
     $this->observerMock->expects($this->never())->method('getEvent');
     $this->model->renewCookie($this->observerMock);
 }