spec\Fenos\Notifynder\Translator\TranslatorManagerSpec::it__try_to_get_a_language_from_the_translations PHP Метод

it__try_to_get_a_language_from_the_translations() публичный Метод

public it__try_to_get_a_language_from_the_translations ( Compiler $compiler, Illuminate\Contracts\Config\Repository $config )
$compiler Fenos\Notifynder\Translator\Compiler
$config Illuminate\Contracts\Config\Repository
    public function it__try_to_get_a_language_from_the_translations(Compiler $compiler, Repository $config)
    {
        $filePath = 'cached/file';
        $translations = ['it' => ['categoryName' => 'translation']];
        $compiler->getFilePath()->shouldBeCalled()->willReturn($filePath);
        $config->get('notifynder.translations')->shouldBeCalled()->willReturn($translations);
        $compiler->cacheFile($translations)->shouldBeCalled();
        $this->shouldThrow(NotificationLanguageNotFoundException::class)->during('getLanguage', ['en']);
    }