ContainerInteropDoctrineTest\ConnectionFactoryTest::testDoctrineCommentedTypesInjection PHP Метод

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

    public function testDoctrineCommentedTypesInjection()
    {
        $type = Type::getType('boolean');
        $factory = new ConnectionFactory();
        $connection = $factory($this->buildContainer('orm_default', 'orm_default', 'orm_default', ['doctrine_commented_types' => [$type]])->reveal());
        $this->assertTrue($connection->getDatabasePlatform()->isCommentedDoctrineType($type));
    }