Pass session to non-web clients

This commit is contained in:
Eldad Fux
2020-04-08 20:04:46 +03:00
parent 0e134d2c71
commit 73d4012934
4 changed files with 63 additions and 9 deletions
+16
View File
@@ -87,4 +87,20 @@ class URLTest extends TestCase
$this->assertIsString($url);
$this->assertEquals('https://eldad:fux@appwrite.io/#bottom', $url);
}
public function testParseQuery()
{
$result = URL::parseQuery('param1=value1&param2=value2');
$this->assertIsArray($result);
$this->assertEquals(['param1' => 'value1', 'param2' => 'value2'], $result);
}
public function testUnParseQuery()
{
$result = URL::unparseQuery(['param1' => 'value1', 'param2' => 'value2']);
$this->assertIsString($result);
$this->assertEquals('param1=value1&param2=value2', $result);
}
}