public function testVerifyShouldShowFailureForm()
{
$trait = $this->getTraitMock();
Verification::shouldReceive('broker')->andReturn($broker = $this->getBrokerMock());
$broker->shouldReceive('verify')->once()->andReturn(VerificationBroker::INVALID_TOKEN);
$this->laravelContainer->shouldReceive('make')->with('redirect', [])->andReturn($redirect = $this->getRedirectMock());
$redirect->shouldReceive('route')->once()->with('verification.resend')->andReturn($response = m::mock('stdClass'));
$response->shouldReceive('withErrors')->once()->with(['status' => 'translated'])->andReturn('redirect');
$this->laravelContainer->shouldReceive('make')->with('translator', [])->andReturn($translator = m::mock('stdClass'));
$translator->shouldReceive('trans')->andReturn('translated');
$request = $this->getRequestMock();
$request->shouldReceive('get');
$this->assertEquals('redirect', $trait->getVerify($request, 'token'));
}