Skip to content

Commit c7e42df

Browse files
committed
test: alias upsert
1 parent 8c07790 commit c7e42df

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/Feature/AliasTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class AliasTest extends TestCase
1111
"name" => "companies",
1212
"collection_name" => "companies_june11",
1313
];
14+
private $upsertResponse = null;
1415

1516
protected function setUp(): void
1617
{
@@ -19,7 +20,12 @@ protected function setUp(): void
1920
$aliasedCollection = [
2021
'collection_name' => 'companies_june11'
2122
];
22-
$this->client()->aliases->upsert('companies', $aliasedCollection);
23+
$this->upsertResponse = $this->client()->aliases->upsert('companies', $aliasedCollection);
24+
}
25+
26+
public function testCanUpsertAnAlias(): void
27+
{
28+
$this->assertEquals($this->sampleAliasResponse, $this->upsertResponse);
2329
}
2430

2531
public function testCanRetrieveAlias(): void

0 commit comments

Comments
 (0)