public function test_whereTranslation_filters_by_translation_and_locale() { Country::create(['code' => 'some-code', 'name' => 'Griechenland']); $this->assertSame(2, Country::whereTranslation('name', 'Griechenland')->count()); $result = Country::whereTranslation('name', 'Griechenland', 'de')->get(); $this->assertSame(1, $result->count()); $this->assertSame('gr', $result->first()->code); }