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