diff -r b64c8c35c67d -r d2e6ee099125 server/src/tests/Controllers/DocumentListControllerTest.php --- a/server/src/tests/Controllers/DocumentListControllerTest.php Sat Jun 10 22:43:58 2017 +0200 +++ b/server/src/tests/Controllers/DocumentListControllerTest.php Mon Jun 12 14:53:59 2017 +0200 @@ -6,7 +6,7 @@ use CorpusParole\Models\Document; /** - * + * TODO: route has been deleted */ class DocumentListControllerTest extends TestCase { @@ -103,29 +103,30 @@ } public function testIndex() { - $this->documentRepository - ->shouldReceive('paginate') - ->once() - ->andReturn( - new LengthAwarePaginator([], 0, 10, 1, [ - 'path' => '', - 'pageName' => config('corpusparole.pagination_page_param'), - ])); + // $this->documentRepository + // ->shouldReceive('paginate') + // ->once() + // ->andReturn( + // new LengthAwarePaginator([], 0, 10, 1, [ + // 'path' => '', + // 'pageName' => config('corpusparole.pagination_page_param'), + // ])); - $response = $this->call('GET', '/bo/docs'); + // $response = $this->call('GET', '/bo/docs'); - $this->assertResponseOk($response); - $this->assertViewHas('docs'); + // $response + // ->assertStatus(200) + // ->assertViewHas('docs'); } - public function testShow() { - $res_doc = new EasyRdf\Graph('http://corpusdelaparole.huma-num.fr/corpus/res/crdo-BOD092_SOUND',DocumentListControllerTest::GET_DOC); - $this->documentRepository - ->shouldReceive('get') - ->once() - ->andReturn(new Document('http://corpusdelaparole.huma-num.fr/corpus/res/crdo-BOD092_SOUND', $res_doc)); + // public function testShow() { + // $res_doc = new EasyRdf\Graph('http://corpusdelaparole.huma-num.fr/corpus/res/crdo-BOD092_SOUND',DocumentListControllerTest::GET_DOC); + // $this->documentRepository + // ->shouldReceive('get') + // ->once() + // ->andReturn(new Document('http://corpusdelaparole.huma-num.fr/corpus/res/crdo-BOD092_SOUND', $res_doc)); - $response = $this->visit('/bo/docs/crdo-BOD092_SOUND'); + // $response = $this->visit('/bo/docs/crdo-BOD092_SOUND'); - } + // } }