Skip to content

Commit ec7c9fd

Browse files
author
Ethan Hann
committed
Add test to check if NOFREQS is added to the index's info output
1 parent ae32096 commit ec7c9fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/RediSearch/IndexTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,16 @@ public function testSetStopWordsOnCreateIndex()
645645
$this->assertEquals(1, $result->getCount());
646646
}
647647

648+
public function testShouldCreateIndexWithNoFrequencies()
649+
{
650+
$this->subject->setNoFrequenciesEnabled(true)->create();
651+
$expected = 'NOFREQS';
652+
653+
$info = $this->subject->info();
654+
655+
$this->assertEquals($expected, $info[3][0]);
656+
}
657+
648658
public function testShouldNotChangeOriginalSchemaFieldWhenAddingNewDocument()
649659
{
650660
$expectedId = 'id1';

0 commit comments

Comments
 (0)