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

testCreate() public method

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