Sokil\Mongo\CollectionTest::testValidateOnExistedCollection PHP Method

testValidateOnExistedCollection() public method

    public function testValidateOnExistedCollection()
    {
        $this->collection->createDocument(array('param' => 1))->save();
        $result = $this->collection->validate(true);
        $this->assertInternalType('array', $result);
    }
CollectionTest