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

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

public it_get_the_translations_from_never_cached_config_file ( Compiler $compiler, Illuminate\Contracts\Config\Repository $config )
$compiler Fenos\Notifynder\Translator\Compiler
$config Illuminate\Contracts\Config\Repository
    public function it_get_the_translations_from_never_cached_config_file(Compiler $compiler, Repository $config)
    {
        $filePath = 'cached/file';
        $translations = [];
        $compiler->getFilePath()->shouldBeCalled()->willReturn($filePath);
        $config->get('notifynder.translations')->shouldBeCalled()->willReturn($translations);
        $compiler->cacheFile($translations)->shouldBeCalled();
        $this->getTranslations()->shouldReturn($translations);
    }