Elcodi\Bundle\TestCommonBundle\Functional\WebTestCase::createSchema PHP Method

createSchema() protected static method

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();
    }