check() публичный Метод

{@inheritDoc}
public check ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface
Пример #1
0
 public function testNotActivatedExceptionGetUser()
 {
     $checkpoint = new ActivationCheckpoint($users = m::mock('Cartalyst\\Sentinel\\Activations\\IlluminateActivationRepository'));
     $users->shouldReceive('completed')->once();
     try {
         $checkpoint->check(m::mock('Cartalyst\\Sentinel\\Users\\EloquentUser'));
     } catch (NotActivatedException $e) {
         $this->assertInstanceOf('Cartalyst\\Sentinel\\Users\\EloquentUser', $e->getUser());
     }
 }