@magentoDbIsolation disabled @magentoDataFixture Magento/Search/_files/synonym_reader.php
Definition at line 12 of file SynonymReaderTest.php.
◆ loadByPhraseDataProvider()
static loadByPhraseDataProvider |
( |
| ) |
|
|
static |
- Returns
- array
Definition at line 28 of file SynonymReaderTest.php.
35 'ENGLISH', [[
'synonyms' =>
'british,english',
'store_id' => 1,
'website_id' => 0]]
38 'English', [[
'synonyms' =>
'british,english',
'store_id' => 1,
'website_id' => 0]]
41 'QUEEN', [[
'synonyms' =>
'queen,monarch',
'store_id' => 1,
'website_id' => 0]]
44 'Monarch', [[
'synonyms' =>
'queen,monarch',
'store_id' => 1,
'website_id' => 0]]
48 [
'synonyms' =>
'queen,monarch',
'store_id' => 1,
'website_id' => 0],
49 [
'synonyms' =>
'british,english',
'store_id' => 1,
'website_id' => 0]
◆ setUp()
◆ testLoadByPhrase()
testLoadByPhrase |
( |
|
$phrase, |
|
|
|
$expectedResult |
|
) |
| |
- Parameters
-
string | $phrase | |
array | $expectedResult | @dataProvider loadByPhraseDataProvider |
Definition at line 60 of file SynonymReaderTest.php.
62 $data = $this->model->loadByPhrase($phrase)->getData();
65 foreach ($expectedResult as $r) {
66 $this->assertEquals($r[
'synonyms'],
$data[
$i][
'synonyms']);
67 $this->assertEquals($r[
'store_id'],
$data[
$i][
'store_id']);
68 $this->assertEquals($r[
'website_id'],
$data[
$i][
'website_id']);
The documentation for this class was generated from the following file: