@@ -77,7 +77,7 @@ |
||
77 | 77 | ]); |
78 | 78 | |
79 | 79 | $this->assertEquals(200, $response->getStatusCode()); |
80 | - $this->assertEquals('This is some plain text test file.' . "\n", (string) $response->getBody()); |
|
80 | + $this->assertEquals('This is some plain text test file.'."\n", (string) $response->getBody()); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -37,15 +37,15 @@ discard block |
||
37 | 37 | { |
38 | 38 | parent::setUp(); |
39 | 39 | |
40 | - $this->oaiUrl = $this->baseUrl . '/index.php?id=' . $this->oaiPage; |
|
41 | - $this->oaiUrlNoStoragePid = $this->baseUrl . '/index.php?id=' . $this->oaiPageNoStoragePid; |
|
40 | + $this->oaiUrl = $this->baseUrl.'/index.php?id='.$this->oaiPage; |
|
41 | + $this->oaiUrlNoStoragePid = $this->baseUrl.'/index.php?id='.$this->oaiPageNoStoragePid; |
|
42 | 42 | |
43 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.xml'); |
|
44 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/metadata.xml'); |
|
45 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
46 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/pages.xml'); |
|
47 | - $this->importDataSet(__DIR__ . '/../../Fixtures/OaiPmh/pages.xml'); |
|
48 | - $this->importDataSet(__DIR__ . '/../../Fixtures/OaiPmh/solrcores.xml'); |
|
43 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/documents_1.xml'); |
|
44 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/metadata.xml'); |
|
45 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
46 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/pages.xml'); |
|
47 | + $this->importDataSet(__DIR__.'/../../Fixtures/OaiPmh/pages.xml'); |
|
48 | + $this->importDataSet(__DIR__.'/../../Fixtures/OaiPmh/solrcores.xml'); |
|
49 | 49 | |
50 | 50 | $this->persistenceManager = $this->objectManager->get(PersistenceManager::class); |
51 | 51 | $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, 20000); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $coreName = Solr::createCore(); |
63 | 63 | $solr = Solr::getInstance($coreName); |
64 | 64 | |
65 | - $this->importSolrDocuments($solr, __DIR__ . '/../../Fixtures/Common/documents_1.solr.json'); |
|
65 | + $this->importSolrDocuments($solr, __DIR__.'/../../Fixtures/Common/documents_1.solr.json'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $oaiCoreModel = $this->solrCoreRepository->findByUid(11001); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $jsonDocuments = json_decode(file_get_contents($path), true); |
77 | 77 | |
78 | 78 | $updateQuery = $solr->service->createUpdate(); |
79 | - $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
|
79 | + $documents = array_map(function($jsonDoc) use ($updateQuery) { |
|
80 | 80 | $document = $updateQuery->createDocument(); |
81 | 81 | foreach ($jsonDoc as $key => $value) { |
82 | 82 | $document->setField($key, $value); |
@@ -21,9 +21,9 @@ |
||
21 | 21 | |
22 | 22 | $this->documentRepository = $this->initializeRepository(DocumentRepository::class, 20000); |
23 | 23 | |
24 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.xml'); |
|
25 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/pages.xml'); |
|
26 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
24 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/documents_1.xml'); |
|
25 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/pages.xml'); |
|
26 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -37,9 +37,9 @@ |
||
37 | 37 | $this->documentRepository = $this->initializeRepository(DocumentRepository::class, 20000); |
38 | 38 | $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, 20000); |
39 | 39 | |
40 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/documents_1.xml'); |
|
41 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/libraries.xml'); |
|
42 | - $this->importDataSet(__DIR__ . '/../../Fixtures/Common/metadata.xml'); |
|
40 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/documents_1.xml'); |
|
41 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/libraries.xml'); |
|
42 | + $this->importDataSet(__DIR__.'/../../Fixtures/Common/metadata.xml'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |