diff --git a/src/Service/Indexer/InternalResourceIndexer.php b/src/Service/Indexer/InternalResourceIndexer.php index 587924d..fcefd74 100644 --- a/src/Service/Indexer/InternalResourceIndexer.php +++ b/src/Service/Indexer/InternalResourceIndexer.php @@ -136,7 +136,7 @@ private function indexResources( $this->indexerProgressHandler->startUpdate($total); } - $availableIndexes = $this->indexService->getAvailableIndexes(); + $availableIndexes = $this->indexService->getAvailableIndices(); $splitterResult = $this->translationSplitter->split($pathList); $this->indexTranslationSplittedResources( diff --git a/src/Service/Indexer/SolrIndexService.php b/src/Service/Indexer/SolrIndexService.php index 30fe789..240a705 100644 --- a/src/Service/Indexer/SolrIndexService.php +++ b/src/Service/Indexer/SolrIndexService.php @@ -69,7 +69,7 @@ public function commit(string $core): void /** * @return string[] */ - public function getAvailableIndexes(): array + public function getAvailableIndices(): array { $client = $this->clientFactory->create(''); $coreAdminQuery = $client->createCoreAdmin(); diff --git a/test/Service/Indexer/InternalResourceIndexerTest.php b/test/Service/Indexer/InternalResourceIndexerTest.php index 8c37ff3..eba0b7e 100644 --- a/test/Service/Indexer/InternalResourceIndexerTest.php +++ b/test/Service/Indexer/InternalResourceIndexerTest.php @@ -79,7 +79,7 @@ public function setUp(): void $this->updater->method('createDocument')->willReturn( new IndexSchema2xDocument() ); - $this->solrIndexService->method('getAvailableIndexes') + $this->solrIndexService->method('getAvailableIndices') ->willReturnCallback(function () { return $this->availableIndexes; }); diff --git a/test/Service/Indexer/SolrIndexServiceTest.php b/test/Service/Indexer/SolrIndexServiceTest.php index b69854b..a865242 100644 --- a/test/Service/Indexer/SolrIndexServiceTest.php +++ b/test/Service/Indexer/SolrIndexServiceTest.php @@ -65,7 +65,7 @@ public function testGetAvailableCores(): void $response->method('getStatusResults')->willReturn([$statusResult]); $this->client->method('coreAdmin')->willReturn($response); - $cores = $this->indexService->getAvailableIndexes(); + $cores = $this->indexService->getAvailableIndices(); $this->assertEquals(['test'], $cores, 'Cores should be returned'); }