public function testGetContactGroups() { $contacts = $this->repository->getContactGroups(); $this->assertCount(3, $contacts); $this->assertEquals([['id' => '1', 'name' => 'Développeurs', 'identity' => 'John Doe'], ['id' => '2', 'name' => 'Normandie', 'identity' => 'Alexander'], ['id' => '1', 'name' => 'Île-de-France', 'identity' => 'John Doe']], $contacts); }
/** * @return array */ public function getContactGroups() { return $this->repository->getContactGroups(); }