Skip to content

Commit

Permalink
Fix SolrSearchTest
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Dec 5, 2023
1 parent 2e435cf commit 3eb9d12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Functional/Common/SolrSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class SolrSearchTest extends FunctionalTestCase
];

private Solr $solr;
private SolrCoreRepository $solrCoreRepository;

public function setUp(): void
{
Expand All @@ -44,7 +45,8 @@ public function setUp(): void
public function canPrepareAndSubmit()
{
$documentRepository = $this->initializeRepository(DocumentRepository::class, 0);
$settings = ['solrcore' => 5, 'storagePid' => 0];
$solrCoreName = $this->solrCoreRepository->findByUid(5)->getIndexName();
$settings = ['solrcore' => $solrCoreName, 'storagePid' => 0];

$resultSet = $this->solr->searchRaw(['core' => 5, 'collection' => 1]);
$this->assertCount(33, $resultSet);
Expand Down

0 comments on commit 3eb9d12

Please sign in to comment.