Cartalyst\Sentinel\Checkpoints\ActivationCheckpoint::check PHP Méthode

check() public méthode

{@inheritDoc}
public check ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface
    public function check(UserInterface $user)
    {
        return $this->checkActivation($user);
    }

Usage Example

 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());
     }
 }