server/src/tests/Controllers/ViafControllerTest.php
changeset 306 3fccf43160a7
parent 23 037687868bc4
child 407 2dba812c7ef2
--- 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);
     }