Skip to content

Commit 2b6b87c

Browse files
committed
MAGETWO-48807: Fix Magento\CatalogSearch\Test\TestCase\AdvancedSearchEntityTest
- Fix SynonymAnalyzer integration test to match code changes
1 parent d87b790 commit 2b6b87c

File tree

1 file changed

+6
-45
lines changed

1 file changed

+6
-45
lines changed

dev/tests/integration/testsuite/Magento/Search/Model/SynonymAnalyzerTest.php

Lines changed: 6 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -31,64 +31,25 @@ public static function loadGetSynonymsForPhraseDataProvider()
3131
{
3232
return [
3333
'WithSynonymsFromStoreViewScope' => [
34-
'phrase' => 'Elizabeth is the English queen.',
34+
'phrase' => 'elizabeth is the english queen',
3535
'expectedResult' => [['elizabeth'],['is'],['the'],['british', 'english'],['queen', 'monarch']]
3636
],
3737
'WithSynonymsFromWebsiteScope' => [
38-
'phrase' => 'Orange hill',
38+
'phrase' => 'orange hill',
3939
'expectedResult' => [['orange', 'magento'], ['hill', 'mountain', 'peak']]
4040
],
4141
'WithSynonymsFromDefaultScope' => [
42-
'phrase' => 'universe is enormous.',
42+
'phrase' => 'universe is enormous',
4343
'expectedResult' => [['universe', 'cosmos'], ['is'], ['big', 'huge', 'large', 'enormous']]
4444
],
4545
'noSynonyms' => [
46-
'phrase' => 'This sentence has no synonyms',
46+
'phrase' => 'this sentence has no synonyms',
4747
'expectedResult' => [['this'], ['sentence'], ['has'], ['no'], ['synonyms']]
4848
],
49-
'specialCharacters' => [
50-
'phrase' => '~tilde`backtic! exclamation@ at#hash\$dollar%percent^carat&ampersand*star(leftparan'
51-
. ')rightparan_underscore+plus=equal{leftcurly}rightcurly[leftbracket]rightbracket:colon'
52-
. '"doublequote\'singlequote,comma space.period<leftangle>rightangle?questionmark\\backslash'
53-
. '/forwardslash tab;semicolon',
54-
'expectedResult' => [
55-
['tilde'],
56-
['backtic'],
57-
['exclamation'],
58-
['at'],
59-
['hash'],
60-
['dollar'],
61-
['percent'],
62-
['carat'],
63-
['ampersand'],
64-
['star'],
65-
['leftparan'],
66-
['rightparan'],
67-
['underscore'],
68-
['plus'],
69-
['equal'],
70-
['leftcurly'],
71-
['rightcurly'],
72-
['leftbracket'],
73-
['rightbracket'],
74-
['colon'],
75-
['doublequote'],
76-
['singlequote'],
77-
['comma'],
78-
['space'],
79-
['period'],
80-
['leftangle'],
81-
['rightangle'],
82-
['questionmark'],
83-
['backslash'],
84-
['forwardslash'],
85-
['tab'],
86-
['semicolon']
87-
]
88-
],
8949
'oneMoreTest' => [
9050
'phrase' => 'schlicht',
91-
'expectedResult' => [['schlicht', 'natürlich']]]
51+
'expectedResult' => [['schlicht', 'natürlich']]
52+
],
9253
];
9354
}
9455

0 commit comments

Comments
 (0)