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