public function testRedirectReturnedByVerificationWhenRecordDoesntExistInTable()
{
$creds = ['token' => 'token'];
$broker = $this->getBroker($mocks = $this->getMocks());
$mocks['users']->shouldReceive('retrieveByCredentials')->once()->with(array_except($creds, ['token']))->andReturn($user = m::mock('Krucas\\LaravelUserEmailVerification\\Contracts\\RequiresEmailVerification'));
$mocks['tokens']->shouldReceive('exists')->with($user, 'token')->andReturn(false);
$this->assertEquals(VerificationBroker::INVALID_TOKEN, $broker->verify($creds, function () {
}));
}