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']);
}