Skip to content

Commit

Permalink
change test if lucene is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Jun 13, 2024
1 parent 56b9cc0 commit fc1c4df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/UnitMock/OcSearchTestMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ public function get_eposides(): void
* @test
*/
public function get_lucenes(): void
{
{
$params = ['series' => true];
$response = $this->ocSearch->getLucene($params);
$this->assertSame(200, $response['code'], 'Failure to search lucene');

if ($this->ocSearch->lucene) {
$this->assertSame(200, $response['code'], 'Failure to search lucene');
} else {
$this->assertFalse($response);
}
}

/**
Expand Down

0 comments on commit fc1c4df

Please sign in to comment.