Skip to content

Commit 7cf7c9a

Browse files
committed
Fix tests
1 parent 49a054e commit 7cf7c9a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/Integration/SettingsTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ class SettingsTest extends BaseKernelTestCase
1818

1919
public const DEFAULT_RANKING_RULES
2020
= [
21-
'typo',
22-
'words',
23-
'proximity',
24-
'attribute',
25-
'wordsPosition',
26-
'exactness',
21+
"words",
22+
"typo",
23+
"proximity",
24+
"attribute",
25+
"exactness"
2726
];
2827

2928
protected Client $client;
@@ -85,7 +84,7 @@ public function testUpdateSettings(): void
8584
$this->assertNotEmpty($settings['stopWords']);
8685
$this->assertEquals(['a', 'an', 'the'], $settings['stopWords']);
8786

88-
$this->assertNotEmpty($settings['attributesForFaceting']);
89-
$this->assertEquals(['title', 'publishedAt'], $settings['attributesForFaceting']);
87+
$this->assertNotEmpty($settings['filterableAttributes']);
88+
$this->assertEquals(['title', 'publishedAt'], $settings['filterableAttributes']);
9089
}
9190
}

tests/config/meili_search.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ meili_search:
1010
enable_serializer_groups: true
1111
settings:
1212
stopWords: ['the', 'a', 'an']
13-
attributesForFaceting: ['title', 'publishedAt']
13+
filterableAttribute: ['title', 'publishedAt']
1414
- name: comments
1515
class: 'MeiliSearch\Bundle\Test\Entity\Comment'
1616
- name: aggregated

0 commit comments

Comments
 (0)