Example #1
0
 /**
  * @test
  */
 public function shouldAllowSetModelAndKeepTokenSame()
 {
     $token = new Token();
     $request = new SecuredNotify($notification = array(), $token);
     //guard
     $this->assertSame($token, $request->getToken());
     $this->assertSame($token, $request->getModel());
     $newModel = new \stdClass();
     $request->setModel($newModel);
     $this->assertSame($token, $request->getToken());
     $this->assertSame($newModel, $request->getModel());
 }
 function it_supports__secured_notify(SecuredNotify $request)
 {
     $request->getNotification()->willReturn([]);
     $this->supports($request)->shouldReturn(true);
 }