/** * @test */ public function can_find_a_country_by_code() { $earth = new Earth(); $russia = $earth->findOne(['code' => 'RU']); $this->assertTrue($russia instanceof Country); $this->assertEquals('RU', $russia->getCode()); }
/** * @test */ public function lower_case_find_also_works() { $earth = new Earth(); $russia = $earth->findOne(['code' => 'ru']); $this->assertInstanceOf(Country::class, $russia); }