Code Duplication    Length = 12-13 lines in 2 locations

tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 1 location

@@ 840-852 (lines=13) @@
837
    /**
838
     * @group DBAL-553
839
     */
840
    public function testReturnsJsonTypeDeclarationSQL()
841
    {
842
        $column = array(
843
            'length'  => 666,
844
            'notnull' => true,
845
            'type'    => Type::getType('json_array'),
846
        );
847
848
        self::assertSame(
849
            $this->_platform->getClobTypeDeclarationSQL($column),
850
            $this->_platform->getJsonTypeDeclarationSQL($column)
851
        );
852
    }
853
854
    /**
855
     * @group DBAL-234

tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 location

@@ 191-202 (lines=12) @@
188
     * @dataProvider serialTypes
189
     * @group 2906
190
     */
191
    public function testGetDefaultValueDeclarationSQLIgnoresTheDefaultKeyWhenTheFieldIsSerial(string $type) : void
192
    {
193
        $sql = $this->_platform->getDefaultValueDeclarationSQL(
194
            [
195
                'autoincrement' => true,
196
                'type'          => Type::getType($type),
197
                'default'       => 1,
198
            ]
199
        );
200
201
        self::assertSame('', $sql);
202
    }
203
204
    public function testGeneratesTypeDeclarationForIntegers()
205
    {