Skip to content

Commit ffda144

Browse files
committed
test: stopwords locale param
1 parent 8e802ee commit ffda144

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Feature/StopwordsTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ protected function setUp(): void
1616

1717
$this->stopwordsUpsertRes = $this->client()->stopwords->put(
1818
[
19-
"stopwords_name" => "stopword_set1",
20-
"stopwords_data" => ["Germany"],
19+
"name" => "stopword_set1",
20+
"stopwords" => ["Germany"],
21+
"locale" => "en"
2122
]
2223
);
2324
}
@@ -34,6 +35,7 @@ public function testCanUpsertAStopword(): void
3435
{
3536
$this->assertEquals("stopword_set1", $this->stopwordsUpsertRes['id']);
3637
$this->assertEquals(["Germany"], $this->stopwordsUpsertRes['stopwords']);
38+
$this->assertEquals('en', $this->stopwordsUpsertRes['locale']);
3739
}
3840

3941
public function testCanRetrieveAStopword(): void

0 commit comments

Comments
 (0)