Doctrine\ODM\MongoDB\Tests\SchemaManagerTest::testCreateCollections PHP Метод

testCreateCollections() публичный Метод

    public function testCreateCollections()
    {
        foreach ($this->documentDatabases as $class => $database) {
            if (in_array($class, $this->indexedClasses + $this->someNonIndexedClasses)) {
                $database->expects($this->once())->method('createCollection');
            } elseif (in_array($class, $this->someMappedSuperclassAndEmbeddedClasses)) {
                $database->expects($this->never())->method('createCollection');
            }
        }
        $this->schemaManager->createCollections();
    }