Skip to content

Commit

Permalink
Improve SolrSearchTest
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Nov 30, 2023
1 parent b788e80 commit 2338b88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
1 change: 1 addition & 0 deletions Tests/Fixtures/Common/solrcores.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"tx_dlf_solrcores",,,,,,,,
,"uid","pid","tstamp","crdate","cruser_id","deleted","label","index_name"
,4,0,1631254345,1631186030,1,0,"Common Solr Testing Core",
,5,0,1631254346,1631186030,1,0,"Common Solr Testing Core 2",
13 changes: 0 additions & 13 deletions Tests/Fixtures/Common/solrcores.xml

This file was deleted.

8 changes: 3 additions & 5 deletions Tests/Functional/Common/SolrSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,18 @@ public function setUp(): void
{
parent::setUp();
$this->setUpData(self::$databaseFixtures);
$this->solr = $this->setUpSolr(4, 0, self::$solrFixtures);
$this->solr = $this->setUpSolr(5, 0, self::$solrFixtures);
}

/**
* @test
*/
public function canPrepareAndSubmit()
{
$this->markTestSkipped('Does not work in combination with other tests.');

$documentRepository = $this->initializeRepository(DocumentRepository::class, 0);
$settings = ['solrcore' => 4, 'storagePid' => 0];
$settings = ['solrcore' => 5, 'storagePid' => 0];

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

$params1 = ['query' => '*'];
Expand Down

0 comments on commit 2338b88

Please sign in to comment.