Skip to content

Commit

Permalink
refactor: rename SolrIndexService::getAvailableIndexes to SolrIndexSe…
Browse files Browse the repository at this point in the history
…rvice::getAvailableIndices
  • Loading branch information
sitepark-veltrup committed Mar 21, 2024
1 parent 2637fbf commit 24f32ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Service/Indexer/InternalResourceIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Indexer/SolrIndexService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/Service/Indexer/InternalResourceIndexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
2 changes: 1 addition & 1 deletion test/Service/Indexer/SolrIndexServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 24f32ab

Please sign in to comment.