diff --git a/src/Service/Indexer/IndexerConfigurationLoader.php b/src/Service/Indexer/IndexerConfigurationLoader.php index 6cb1c5f..f3d46a6 100644 --- a/src/Service/Indexer/IndexerConfigurationLoader.php +++ b/src/Service/Indexer/IndexerConfigurationLoader.php @@ -21,7 +21,7 @@ public function __construct( */ public function loadAll(): array { - $dir = $this->resourceChannel->baseDir . '/indexer'; + $dir = $this->resourceChannel->configDir . '/indexer'; if (!is_dir($dir)) { return []; } @@ -38,7 +38,7 @@ public function loadAll(): array private function getFile(string $source): string { - return $this->resourceChannel->baseDir . + return $this->resourceChannel->configDir . '/indexer/' . $source . '.php'; } diff --git a/test/Console/Command/DumpIndexDocumentTest.php b/test/Console/Command/DumpIndexDocumentTest.php index 95de790..dcf4875 100644 --- a/test/Console/Command/DumpIndexDocumentTest.php +++ b/test/Console/Command/DumpIndexDocumentTest.php @@ -34,6 +34,7 @@ public function setUp(): void '', '', '', + '', 'test', [] ); diff --git a/test/Console/Command/IndexerInternalResourceUpdateTest.php b/test/Console/Command/IndexerInternalResourceUpdateTest.php index 1777c14..9689010 100644 --- a/test/Console/Command/IndexerInternalResourceUpdateTest.php +++ b/test/Console/Command/IndexerInternalResourceUpdateTest.php @@ -37,6 +37,7 @@ public function setUp(): void '', '', '', + '', 'test', [] ); diff --git a/test/Console/Command/IndexerTest.php b/test/Console/Command/IndexerTest.php index 8f596e1..7b85133 100644 --- a/test/Console/Command/IndexerTest.php +++ b/test/Console/Command/IndexerTest.php @@ -37,6 +37,7 @@ public function setUp(): void '', '', '', + '', 'test', [] ); diff --git a/test/Console/Command/MoreLikeThisTest.php b/test/Console/Command/MoreLikeThisTest.php index 4c2517d..c2b4b29 100644 --- a/test/Console/Command/MoreLikeThisTest.php +++ b/test/Console/Command/MoreLikeThisTest.php @@ -41,6 +41,7 @@ public function setUp(): void '', '', '', + '', 'test', [] ); diff --git a/test/Console/Command/SearchTest.php b/test/Console/Command/SearchTest.php index 88110b3..c755a89 100644 --- a/test/Console/Command/SearchTest.php +++ b/test/Console/Command/SearchTest.php @@ -42,6 +42,7 @@ public function setUp(): void '', '', '', + '', 'test', [] ); diff --git a/test/Console/Command/SuggestTest.php b/test/Console/Command/SuggestTest.php index 16ed18d..e5f9751 100644 --- a/test/Console/Command/SuggestTest.php +++ b/test/Console/Command/SuggestTest.php @@ -39,6 +39,7 @@ public function setUp(): void '', '', '', + '', 'test', [] ); diff --git a/test/Service/Indexer/IndexerConfigurationLoaderTest.php b/test/Service/Indexer/IndexerConfigurationLoaderTest.php index 9765991..a632f39 100644 --- a/test/Service/Indexer/IndexerConfigurationLoaderTest.php +++ b/test/Service/Indexer/IndexerConfigurationLoaderTest.php @@ -122,7 +122,7 @@ public function testLoadAllWithConfigReturnString(): void } private function createLoader( - string $baseDir + string $configDir ): IndexerConfigurationLoader { $resourceChannel = new ResourceChannel( '', @@ -132,9 +132,10 @@ private function createLoader( false, '', '', - $baseDir, '', '', + $configDir, + '', [] ); return new IndexerConfigurationLoader($resourceChannel); diff --git a/test/Service/Indexer/LocationFinderTest.php b/test/Service/Indexer/LocationFinderTest.php index 10cc69b..327a967 100644 --- a/test/Service/Indexer/LocationFinderTest.php +++ b/test/Service/Indexer/LocationFinderTest.php @@ -32,6 +32,7 @@ protected function setUp(): void '', $resourceDir, '', + '', [] ); $this->locationFinder = new LocationFinder($resourceChannel); diff --git a/test/Service/ResourceChannelBasedIndexNameTest.php b/test/Service/ResourceChannelBasedIndexNameTest.php index c033d8f..e80fbdd 100644 --- a/test/Service/ResourceChannelBasedIndexNameTest.php +++ b/test/Service/ResourceChannelBasedIndexNameTest.php @@ -28,6 +28,7 @@ public function setUp(): void '', '', '', + '', 'test', ['en_US'] );