Skip to content

Commit b7324f6

Browse files
committed
test: url encoded name
1 parent 64f5cd1 commit b7324f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Feature/AliasesTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ public function testCanUpsertAnAlias(): void
3636
$this->assertEquals($this->sampleAliasResponse, $this->upsertResponse);
3737
}
3838

39+
public function testCanUpsertAnAliasUrlEncodedName(): void
40+
{
41+
$aliasedCollection = [
42+
'collection_name' => 'companies_june11'
43+
];
44+
$res = $this->client()->aliases->upsert("abc123?=+/~-_- &| test'", $aliasedCollection);
45+
$this->assertEquals(["name"=>"abc123?=+/~-_- &| test'", ...$aliasedCollection], $res);
46+
}
47+
3948
public function testCanRetrieveAlias(): void
4049
{
4150
$response = $this->client()->aliases['companies']->retrieve();

0 commit comments

Comments
 (0)