flatMap(fn (string $dir) => File::allFiles($dir)) ->filter(fn ($file) => str_ends_with($file->getFilename(), '.php')) ->reject(fn ($file) => $file->getFilename() === 'agb.blade.php') ->filter(fn ($file) => preg_match('/qualitätsgeprüft|quality-checked|auf Qualität geprüft/iu', $file->getContents()) === 1) ->map(fn ($file) => str_replace(base_path().'/', '', $file->getPathname())) ->values() ->all(); expect($hits)->toBe([]); }); test('the publish page names the archive year, not a quality check since then', function () { expect(__('static.publish.quality_since', ['year' => 2012]))->toBe('Im Archiv seit 2012') ->and(trans('static.publish.quality_since', ['year' => 2012], 'en'))->toBe('In the archive since 2012'); });