diff -r ff6cf3fc5f40 -r 3fccf43160a7 server/src/tests/Controllers/ViafControllerTest.php --- a/server/src/tests/Controllers/ViafControllerTest.php Wed Sep 28 15:58:18 2016 +0200 +++ b/server/src/tests/Controllers/ViafControllerTest.php Wed Sep 28 17:24:02 2016 +0200 @@ -35,7 +35,7 @@ '56666014' => 'Guylaine Brun-Trigaud', '93752300' => 'Sonia Branca-Rosoff' ]); - $response = $this->get('/api/v1/viaf/93752300,56666014')-> + $response = $this->get('/api/v1/resolvers/viaf/93752300,56666014')-> seeJsonEquals(['viafids' => [ '56666014' => 'Guylaine Brun-Trigaud', '93752300' => 'Sonia Branca-Rosoff' @@ -50,7 +50,7 @@ ->andReturn([ '93752300' => 'Sonia Branca-Rosoff' ]); - $response = $this->get('/api/v1/viaf/93752300')-> + $response = $this->get('/api/v1/resolvers/viaf/93752300')-> seeJsonEquals(['viafids' => [ '93752300' => 'Sonia Branca-Rosoff' ]]); @@ -64,7 +64,7 @@ ->andReturn([ '12345' => null ]); - $response = $this->get('/api/v1/viaf/12345')-> + $response = $this->get('/api/v1/resolvers/viaf/12345')-> seeJsonEquals(['viafids' => [ '12345' => null ]]); @@ -76,7 +76,7 @@ ->with(['abcdef','ghij']) ->once() ->andThrow('CorpusParole\Services\ViafResolverException', "ViafId not in correct format", 400); - $response = $this->get('/api/v1/viaf/abcdef,ghij'); + $response = $this->get('/api/v1/resolvers/viaf/abcdef,ghij'); $this->assertResponseStatus(400); }