equal
deleted
inserted
replaced
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..."); |