--- a/server/src/tests/Controllers/BnfControllerTest.php Wed Sep 28 15:58:18 2016 +0200
+++ b/server/src/tests/Controllers/BnfControllerTest.php Wed Sep 28 17:24:02 2016 +0200
@@ -39,7 +39,7 @@
'ark:/12148/cb11946662b' => 'parents et enfants',
'ark:/12148/cb11965628b' => 'frères et soeurs'
]);
- $response = $this->get('/api/v1/bnf/cb11946662b,cb11965628b')->
+ $response = $this->get('/api/v1/resolvers/bnf/cb11946662b,cb11965628b')->
seeJsonEquals(['bnfids' => [
'ark:/12148/cb11946662b' => 'parents et enfants',
'ark:/12148/cb11965628b' => 'frères et soeurs'
@@ -54,7 +54,7 @@
->andReturn([
'ark:/12148/cb11946662b' => 'parents et enfants'
]);
- $response = $this->get('/api/v1/bnf/cb11946662b')->
+ $response = $this->get('/api/v1/resolvers/bnf/cb11946662b')->
seeJsonEquals(['bnfids' => [
'ark:/12148/cb11946662b' => 'parents et enfants'
]]);
@@ -68,7 +68,7 @@
->andReturn([
'ark:/12148/cb12345678b' => null
]);
- $response = $this->get('/api/v1/bnf/cb12345678b')->
+ $response = $this->get('/api/v1/resolvers/bnf/cb12345678b')->
seeJsonEquals(['bnfids' => [
'ark:/12148/cb12345678b' => null
]]);
@@ -80,7 +80,7 @@
->with(['ark:/12148/abcdef','ark:/12148/ghij'])
->once()
->andThrow('CorpusParole\Services\BnfResolverException', "BnfId not in correct format", 500);
- $response = $this->get('/api/v1/bnf/abcdef,ghij');
+ $response = $this->get('/api/v1/resolvers/bnf/abcdef,ghij');
$this->assertResponseStatus(500);
}