From 286f0504020d544e34a79397d41788c31ddb706d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Sat, 4 Nov 2023 18:49:13 +0100 Subject: [PATCH] fixup! IBX-6649: Added support for spell checking --- .../integration/Core/Repository/SearchServiceTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/Core/Repository/SearchServiceTest.php b/tests/integration/Core/Repository/SearchServiceTest.php index 49cf2585f3..502b935054 100644 --- a/tests/integration/Core/Repository/SearchServiceTest.php +++ b/tests/integration/Core/Repository/SearchServiceTest.php @@ -4668,14 +4668,14 @@ public function testSpellcheckWithIncorrectQuery(): void } $query = new Query(); - // Search phrase with typo: "Ibexa Platfomr" instead of "Ibexa Platform": - $query->spellcheck = new Query\Spellcheck('Ibexa Platfomr'); + // Search phrase with typo: "Contatc Us" instead of "Contact Us": + $query->spellcheck = new Query\Spellcheck('Contatc Us'); $results = $searchService->findContent($query); self::assertNotNull($results->spellcheck); self::assertTrue($results->spellcheck->isIncorrect()); - self::assertEquals('Ibexa Platform', $results->spellcheck->getQuery()); + self::assertEquals('Contact Us', $results->spellcheck->getQuery()); } public function testSpellcheckWithCorrectQuery(): void @@ -4688,13 +4688,13 @@ public function testSpellcheckWithCorrectQuery(): void $query = new Query(); // Search phrase without typo - $query->spellcheck = new Query\Spellcheck('Ibexa Platform'); + $query->spellcheck = new Query\Spellcheck('Contact Us'); $results = $searchService->findContent($query); self::assertNotNull($results->spellcheck); self::assertFalse($results->spellcheck->isIncorrect()); - self::assertEquals('Ibexa Platform', $results->spellcheck->getQuery()); + self::assertEquals('Contact Us', $results->spellcheck->getQuery()); } /**