server/src/tests/Repositories/DocumentRepositoryIntegrationTest.php
changeset 326 226d5b17a119
parent 277 bd4bc1db4f40
child 371 0365fd9977a4
equal deleted inserted replaced
325:31a4987f6017 326:226d5b17a119
    60     }
    60     }
    61 
    61 
    62     public function testAll() {
    62     public function testAll() {
    63         $expectedId = $this->corpusDocIdBaseUri.'crdo-ALA_738';
    63         $expectedId = $this->corpusDocIdBaseUri.'crdo-ALA_738';
    64         $docList = $this->documentRepository->all();
    64         $docList = $this->documentRepository->all();
    65         $this->assertCount(2, $docList, "Should have one element");
    65         $this->assertCount(2, $docList, "Should have 2 element");
    66 
    66 
    67         $resDoc = $docList[0];
    67         $resDoc = $docList[0];
    68 
    68 
    69         $this->assertInstanceOf(DocumentResult::class, $resDoc, "Res doc must be a Document");
    69         $this->assertInstanceOf(DocumentResult::class, $resDoc, "Res doc must be a Document");
    70         $this->assertEquals(config('corpusparole.corpus_id_scheme').'crdo-ALA_738', $resDoc->getId(), "id must be crdo...");
    70         $this->assertEquals(config('corpusparole.corpus_id_scheme').'crdo-ALA_738', $resDoc->getId(), "id must be crdo...");