Skip to content

Commit

Permalink
Complete tests for Indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed May 19, 2023
1 parent aeb34f8 commit 50eaf44
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tests/Functional/Common/SolrIndexingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ public function canSearchInCollections()
$this->assertGreaterThan($metadataSearch->getNumFound(), $fulltextSearch->getNumFound());
}

/**
* @test
*/
public function canGetIndexFieldName()
{
$this->assertEquals('title_usi', Indexer::getIndexFieldName('title', 20000));
$this->assertEquals('year_uuu', Indexer::getIndexFieldName('year', 20000));
$this->assertEquals('', Indexer::getIndexFieldName('title'));
}

protected function createSolrCore(): object
{
$coreName = Solr::createCore();
Expand Down

0 comments on commit 50eaf44

Please sign in to comment.