Skip to content

Commit 4e2c8c4

Browse files
committed
fix(synonyms): rename synonyms to items inside synonym sets
1 parent 985a4df commit 4e2c8c4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/Feature/OverridesTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class OverridesTest extends TestCase
1515
protected function setUp(): void
1616
{
1717
parent::setUp();
18+
19+
if ($this->isV30OrAbove()) {
20+
$this->markTestSkipped('Overrides are deprecated in Typesense v30+, use CurationSets instead');
21+
}
22+
1823
$this->setUpCollection('books');
1924

2025
$override = [

tests/Feature/SynonymSetsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SynonymSetsTest extends TestCase
1111
private $upsertResponse = null;
1212
private $synonymSets = null;
1313
private $synonymSetData = [
14-
'synonyms' => [
14+
'items' => [
1515
[
1616
'id' => 'dummy',
1717
'synonyms' => ['foo', 'bar', 'baz'],
@@ -35,7 +35,7 @@ protected function setUp(): void
3535

3636
public function testCanUpsertASynonymSet(): void
3737
{
38-
$this->assertEquals($this->synonymSetData['synonyms'], $this->upsertResponse['synonyms']);
38+
$this->assertEquals($this->synonymSetData['items'], $this->upsertResponse['items']);
3939
}
4040

4141
public function testCanRetrieveAllSynonymSets(): void
@@ -47,7 +47,7 @@ public function testCanRetrieveAllSynonymSets(): void
4747
public function testCanRetrieveASpecificSynonymSet(): void
4848
{
4949
$returnData = $this->synonymSets['test-synonym-set']->retrieve();
50-
$this->assertEquals($this->synonymSetData['synonyms'], $returnData['synonyms']);
50+
$this->assertEquals($this->synonymSetData['items'], $returnData['items']);
5151
}
5252

5353
public function testCanDeleteASynonymSet(): void

0 commit comments

Comments
 (0)