Skip to content

Commit

Permalink
Add test to check if NOFREQS is added to the index's info output
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Hann committed Oct 31, 2019
1 parent ae32096 commit ec7c9fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/RediSearch/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,16 @@ public function testSetStopWordsOnCreateIndex()
$this->assertEquals(1, $result->getCount());
}

public function testShouldCreateIndexWithNoFrequencies()
{
$this->subject->setNoFrequenciesEnabled(true)->create();
$expected = 'NOFREQS';

$info = $this->subject->info();

$this->assertEquals($expected, $info[3][0]);
}

public function testShouldNotChangeOriginalSchemaFieldWhenAddingNewDocument()
{
$expectedId = 'id1';
Expand Down

0 comments on commit ec7c9fd

Please sign in to comment.