Skip to content

Commit

Permalink
fixup! IBX-6649: Added support for spell checking
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Nov 5, 2023
1 parent 9bfef5e commit 551b742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/Core/Repository/SearchServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4688,13 +4688,13 @@ public function testSpellcheckWithCorrectQuery(): void

$query = new Query();
// Search phrase without typo
$query->spellcheck = new Query\Spellcheck('Contact Us');
$query->spellcheck = new Query\Spellcheck('Ibexa Platform');

$results = $searchService->findContent($query);

self::assertNotNull($results->spellcheck);
self::assertFalse($results->spellcheck->isIncorrect());
self::assertEqualsIgnoringCase('Contact Us', $results->spellcheck->getQuery());
self::assertEqualsIgnoringCase('Ibexa Platform', $results->spellcheck->getQuery());
}

/**
Expand Down

0 comments on commit 551b742

Please sign in to comment.