locales() as $locale) { $path = $this->path($locale); $this->assertFileExists($path); $this->assertSee($path, '# ' . Str::before($locale, '.')); $this->assertSee($path, '##### All missed:'); $this->assertDoesntSee($path, '## foo'); $this->assertDoesntSee($path, '## bar'); $this->assertDoesntSee($path, '## baz'); } } protected function locales(): array { return Directory::names($this->source_path); } protected function path(string $filename): string { $filename = Str::slug($filename); return $this->target_path . '/' . $filename . '.md'; } }