mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
autoload change
This commit is contained in:
1 parent
690c3f5b2c
commit
8a4668783f
5 files changed
+7
-3970
No files matched your search
Generated
-3960
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -11,7 +11,7 @@ services:
|
||||
volumes:
|
||||
- ./:/usr/src/code
|
||||
ports:
|
||||
- "8708:8708"
|
||||
- "8882:8882"
|
||||
|
||||
mongo:
|
||||
image: mongo:4.4
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
networks:
|
||||
- database
|
||||
ports:
|
||||
- "8703:27017"
|
||||
- "8881:27017"
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: root
|
||||
MONGO_INITDB_ROOT_PASSWORD: example
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Mongo\Exception;
|
||||
namespace Utopia\Mongo\Exception;
|
||||
|
||||
class Duplicate extends \Exception
|
||||
{
|
||||
|
||||
+1
-1
@@ -3,11 +3,11 @@
|
||||
namespace Utopia\Mongo;
|
||||
|
||||
use Exception;
|
||||
use Mongo\Exception\Duplicate;
|
||||
use MongoDB\BSON;
|
||||
use Swoole\Client;
|
||||
use Swoole\Coroutine\Client as CoroutineClient;
|
||||
use stdClass;
|
||||
use Utopia\Mongo\Exception\Duplicate;
|
||||
|
||||
class MongoClient
|
||||
{
|
||||
|
||||
+3
-5
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace Utopia\Tests;
|
||||
|
||||
use Mongo\Exception\Duplicate;
|
||||
use MongoDB\BSON\ObjectId;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Utopia\Mongo\Exception\Duplicate;
|
||||
use Utopia\Mongo\MongoClient;
|
||||
use Utopia\Mongo\MongoClientOptions;
|
||||
|
||||
@@ -38,13 +38,11 @@ class MongoTest extends TestCase
|
||||
self::assertTrue($this->getDatabase()->dropDatabase([]));
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Duplicate
|
||||
*/
|
||||
|
||||
public function testCreateCollection()
|
||||
{
|
||||
self::assertTrue($this->getDatabase()->createCollection('movies'));
|
||||
self::expectExceptionMessage(Duplicate::class);
|
||||
self::expectException(Duplicate::class);
|
||||
self::assertTrue($this->getDatabase()->createCollection('movies'));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user