@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * |
| 50 | 50 | * @var bool |
| 51 | 51 | */ |
| 52 | - protected $disableJsonWrappedResponse = false; |
|
| 52 | + protected $disableJsonWrappedResponse = FALSE; |
|
| 53 | 53 | |
| 54 | 54 | /** @var ObjectManager */ |
| 55 | 55 | protected $objectManager; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $this->baseUrl = 'http://web:8000/public/typo3temp/var/tests/functional-' . $this->identifier . '/'; |
| 87 | 87 | $this->httpClient = new HttpClient([ |
| 88 | 88 | 'base_uri' => $this->baseUrl, |
| 89 | - 'http_errors' => false, |
|
| 89 | + 'http_errors' => FALSE, |
|
| 90 | 90 | ]); |
| 91 | 91 | |
| 92 | 92 | $this->addSiteConfig('dlf-testing', $this->baseUrl); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $siteConfig['languages'][0]['base'] = $baseUrl; |
| 133 | 133 | |
| 134 | 134 | $siteConfigPath = $this->instancePath . '/typo3conf/sites/' . $identifier; |
| 135 | - @mkdir($siteConfigPath, 0775, true); |
|
| 135 | + @mkdir($siteConfigPath, 0775, TRUE); |
|
| 136 | 136 | file_put_contents($siteConfigPath . '/config.yaml', Yaml::dump($siteConfig)); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | protected function importSolrDocuments(Solr $solr, string $path) |
| 151 | 151 | { |
| 152 | - $jsonDocuments = json_decode(file_get_contents($path), true); |
|
| 152 | + $jsonDocuments = json_decode(file_get_contents($path), TRUE); |
|
| 153 | 153 | |
| 154 | 154 | $updateQuery = $solr->service->createUpdate(); |
| 155 | 155 | $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | class OaiPmhTest extends FunctionalTestCase |
| 16 | 16 | { |
| 17 | - protected $disableJsonWrappedResponse = true; |
|
| 17 | + protected $disableJsonWrappedResponse = TRUE; |
|
| 18 | 18 | |
| 19 | 19 | protected $coreExtensionsToLoad = [ |
| 20 | 20 | 'fluid', |
@@ -56,9 +56,9 @@ discard block |
||
| 56 | 56 | protected function setUpOaiSolr() |
| 57 | 57 | { |
| 58 | 58 | // Setup Solr only once for all tests in this suite |
| 59 | - static $solr = null; |
|
| 59 | + static $solr = NULL; |
|
| 60 | 60 | |
| 61 | - if ($solr === null) { |
|
| 61 | + if ($solr === NULL) { |
|
| 62 | 62 | $coreName = Solr::createCore(); |
| 63 | 63 | $solr = Solr::getInstance($coreName); |
| 64 | 64 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $this->expectExceptionMessage('empty list'); |
| 162 | 162 | |
| 163 | 163 | $oai = Endpoint::build($this->oaiUrl); |
| 164 | - $result = $oai->listRecords('mets', null, (new DateTime())->setDate(1900, 1, 1)); |
|
| 164 | + $result = $oai->listRecords('mets', NULL, (new DateTime())->setDate(1900, 1, 1)); |
|
| 165 | 165 | |
| 166 | 166 | $result->current(); |
| 167 | 167 | } |