protected function mockTranslator(string $message)
{
$translator = Mockery::spy(Translator::class);
$translator->shouldReceive('has')->andReturn(true);
$translator->shouldReceive('trans')->andReturn($message);
$this->app->loadDeferredProvider('translator');
$this->app->instance('translator', $translator);
return $translator;
}