Alcaeus\MongoDbAdapter\Tests\Mongo\MongoDBRefTest::testCreateWithDatabase PHP Method

testCreateWithDatabase() public method

    public function testCreateWithDatabase()
    {
        $id = new \MongoId();
        $ref = \MongoDBRef::create('foo', $id, 'database');
        $this->assertSame(['$ref' => 'foo', '$id' => $id, '$db' => 'database'], $ref);
    }