Sokil\Mongo\CollectionTest::testIsVersioningEnabled PHP Method

testIsVersioningEnabled() public method

    public function testIsVersioningEnabled()
    {
        // set by property
        $this->database->map('col1', '\\Sokil\\Mongo\\CollectionWithVersioningMock');
        $this->assertTrue($this->database->col1->isVersioningEnabled());
        // set by map definition
        $this->database->map('col2', array('versioning' => true));
        $this->assertTrue($this->database->col2->isVersioningEnabled());
        // set by map definition
        $this->database->map('col3', array('versioning' => false));
        $this->assertFalse($this->database->col3->isVersioningEnabled());
    }
CollectionTest