Ejemplo n.º 1
0
 /**
  * @test
  */
 public function canExtractByQuery()
 {
     $testFilePath = $this->getFixturePath('testpdf.pdf');
     /** @var $extractQuery \ApacheSolrForTypo3\Solr\ExtractingQuery */
     $extractQuery = GeneralUtility::makeInstance('ApacheSolrForTypo3\\Solr\\ExtractingQuery', $testFilePath);
     $extractQuery->setExtractOnly();
     $response = $this->solrService->extractByQuery($extractQuery);
     $this->assertContains('PDF Test', $response[0], 'Could not extract text');
 }