diff -r ff6cf3fc5f40 -r 3fccf43160a7 server/src/tests/Controllers/GeonamesControllerTest.php --- a/server/src/tests/Controllers/GeonamesControllerTest.php Wed Sep 28 15:58:18 2016 +0200 +++ b/server/src/tests/Controllers/GeonamesControllerTest.php Wed Sep 28 17:24:02 2016 +0200 @@ -33,7 +33,7 @@ ->once() ->andReturn(['2968801' => 'Villedieu-les-Poêles', '2988507' => 'Paris', '6255148' => 'Europe']); - $response = $this->get('/api/v1/geonames/2968801,2988507,6255148')-> + $response = $this->get('/api/v1/resolvers/geonames/2968801,2988507,6255148')-> seeJsonEquals(['geonamesids' => ['2968801' => 'Villedieu-les-Poêles', '2988507' => 'Paris', '6255148' => 'Europe']]); } @@ -45,7 +45,7 @@ ->andReturn([ '2968801' => 'Villedieu-les-Poêles' ]); - $response = $this->get('/api/v1/geonames/2968801')-> + $response = $this->get('/api/v1/resolvers/geonames/2968801')-> seeJsonEquals(['geonamesids' => [ '2968801' => 'Villedieu-les-Poêles' ]]); @@ -59,7 +59,7 @@ ->andReturn([ '12345' => null ]); - $response = $this->get('/api/v1/geonames/12345')-> + $response = $this->get('/api/v1/resolvers/geonames/12345')-> seeJsonEquals(['geonamesids' => [ '12345' => null ]]); @@ -71,7 +71,7 @@ ->with(['abcdef','ghij']) ->once() ->andThrow('CorpusParole\Services\GeonamesResolverException', "GeonamesId not in correct format", 400); - $response = $this->get('/api/v1/geonames/abcdef,ghij'); + $response = $this->get('/api/v1/resolvers/geonames/abcdef,ghij'); $this->assertResponseStatus(400); }