Elcodi\Bundle\TestCommonBundle\Functional\WebTestCase::createSchema PHP 메소드

createSchema() 보호된 정적인 메소드

Only creates schema if loadSchema() is set to true. All other methods will be loaded if this one is loaded. Otherwise, will return.
protected static createSchema ( )
    protected static function createSchema()
    {
        if (!static::loadSchema()) {
            return;
        }
        static::$application->run(new ArrayInput(['command' => 'doctrine:database:drop', '--no-interaction' => true, '--force' => true, '--quiet' => true]));
        static::$application->run(new ArrayInput(['command' => 'doctrine:database:create', '--no-interaction' => true, '--quiet' => true]));
        static::$application->run(new ArrayInput(['command' => 'doctrine:schema:create', '--no-interaction' => true, '--quiet' => true]));
        static::loadFixtures();
    }