mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Client's test
This commit is contained in:
1 parent
677a21c53f
commit
758c8dac6a
2 files changed
+14
No files matched your search
@@ -228,6 +228,16 @@ class Client
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return client's host
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getHost(): string
|
||||
{
|
||||
return $this->host;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a UUID using UUID7 standard for MongoDB _id field.
|
||||
*
|
||||
|
||||
@@ -41,6 +41,10 @@ class MongoTest extends TestCase
|
||||
self::assertTrue($this->getDatabase()->dropDatabase());
|
||||
}
|
||||
|
||||
public function testGetHost()
|
||||
{
|
||||
self::assertSame('mongo', $this->getDatabase()->getClusterTime());
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
|
||||
Reference in new issue
Block a user