We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f5cd1 commit b7324f6Copy full SHA for b7324f6
tests/Feature/AliasesTest.php
@@ -36,6 +36,15 @@ public function testCanUpsertAnAlias(): void
36
$this->assertEquals($this->sampleAliasResponse, $this->upsertResponse);
37
}
38
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
+
48
public function testCanRetrieveAlias(): void
49
{
50
$response = $this->client()->aliases['companies']->retrieve();
0 commit comments