Doctrine\ODM\MongoDB\Tests\SchemaManagerTest::testDropCollections PHP Method

testDropCollections() public method

public testDropCollections ( )
    public function testDropCollections()
    {
        foreach ($this->documentCollections as $class => $collection) {
            if (in_array($class, $this->indexedClasses + $this->someNonIndexedClasses)) {
                $collection->expects($this->once())->method('drop')->with();
            } elseif (in_array($class, $this->someMappedSuperclassAndEmbeddedClasses)) {
                $collection->expects($this->never())->method('drop');
            }
        }
        $this->schemaManager->dropCollections();
    }