diff -r b64c8c35c67d -r d2e6ee099125 server/src/tests/Controllers/BnfControllerTest.php --- a/server/src/tests/Controllers/BnfControllerTest.php Sat Jun 10 22:43:58 2017 +0200 +++ b/server/src/tests/Controllers/BnfControllerTest.php Mon Jun 12 14:53:59 2017 +0200 @@ -40,7 +40,7 @@ 'ark:/12148/cb11965628b' => 'frères et soeurs' ]); $response = $this->get('/api/v1/resolvers/bnf/cb11946662b,cb11965628b')-> - seeJsonEquals(['bnfids' => [ + assertJson(['bnfids' => [ 'ark:/12148/cb11946662b' => 'parents et enfants', 'ark:/12148/cb11965628b' => 'frères et soeurs' ]]); @@ -55,7 +55,7 @@ 'ark:/12148/cb11946662b' => 'parents et enfants' ]); $response = $this->get('/api/v1/resolvers/bnf/cb11946662b')-> - seeJsonEquals(['bnfids' => [ + assertJson(['bnfids' => [ 'ark:/12148/cb11946662b' => 'parents et enfants' ]]); } @@ -69,7 +69,7 @@ 'ark:/12148/cb12345678b' => null ]); $response = $this->get('/api/v1/resolvers/bnf/cb12345678b')-> - seeJsonEquals(['bnfids' => [ + assertJson(['bnfids' => [ 'ark:/12148/cb12345678b' => null ]]); } @@ -82,7 +82,7 @@ ->andThrow('CorpusParole\Services\BnfResolverException', "BnfId not in correct format", 500); $response = $this->get('/api/v1/resolvers/bnf/abcdef,ghij'); - $this->assertResponseStatus(500); + $response->assertStatus(500); } }