Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emulienfou committed Oct 5, 2020
1 parent fa381d8 commit 337724b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ public function testGetDefaultSettings()
$this->assertEquals(self::DEFAULT_RANKING_RULES, $settingA['rankingRules']);
$this->assertNull($settingA['distinctAttribute']);
$this->assertIsArray($settingA['searchableAttributes']);
$this->assertEquals(['*'], $settingA['searchableAttributes']);
$this->assertEquals([], $settingA['searchableAttributes']);
$this->assertIsArray($settingA['displayedAttributes']);
$this->assertEquals(['*'], $settingA['displayedAttributes']);
$this->assertEquals([], $settingA['displayedAttributes']);
$this->assertIsArray($settingA['stopWords']);
$this->assertEmpty($settingA['stopWords']);
$this->assertIsArray($settingA['synonyms']);
$this->assertEmpty($settingA['synonyms']);

$this->assertEquals(self::DEFAULT_RANKING_RULES, $settingB['rankingRules']);
$this->assertNull($settingB['distinctAttribute']);
$this->assertEquals(['*'], $settingB['searchableAttributes']);
$this->assertEquals(['*'], $settingB['displayedAttributes']);
$this->assertEquals(['ObjectID'], $settingB['searchableAttributes']);
$this->assertEquals(['ObjectID'], $settingB['displayedAttributes']);
$this->assertIsArray($settingB['stopWords']);
$this->assertEmpty($settingB['stopWords']);
$this->assertIsArray($settingB['synonyms']);
Expand Down

0 comments on commit 337724b

Please sign in to comment.