/** * @return array */ public function getCountries() { return $this->repository->getCountries(); }
public function testGetCountries() { $countries = $this->repository->getCountries(); $this->assertCount(3, $countries); $this->assertEquals(['id' => '1', 'code' => 'fr', 'label' => 'countries.france'], $countries[0]); }