public function testFindRegionalGroups()
 {
     $groups = $this->repository->findRegionalGroups();
     $this->assertCount(2, $groups);
     $this->assertEquals([['id' => '3', 'name' => 'Normandie', 'description' => 'Groupe régional de Normandie', 'identity' => 'Alexander', 'created_at' => '2014-05-17 10:30:00', 'updated_at' => '2014-12-15 17:52:50', 'label' => 'groups.regional', 'longitude' => '113.252', 'latitude' => '63.465'], ['id' => '2', 'name' => 'Île-de-France', 'description' => "Groupe régional d'Île-de-France", 'identity' => 'John Doe', 'created_at' => '2013-10-13 14:07:00', 'updated_at' => '2013-10-13 14:07:00', 'label' => 'groups.regional', 'longitude' => '125.84', 'latitude' => '75.366']], $groups);
 }
예제 #2
0
 /**
  * @return array
  */
 public function getRegionalGroups()
 {
     return $this->repository->findRegionalGroups();
 }