Code Duplication    Length = 15-16 lines in 2 locations

tests/Doctrine/Tests/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php 2 locations

@@ 455-470 (lines=16) @@
452
     * @dataProvider serialTypes
453
     * @group 2906
454
     */
455
    public function testAutoIncrementCreatesSerialDataTypesWithoutADefaultValueEvenWhenDefaultIsSet(string $type) : void
456
    {
457
        $tableName = "test_serial_type_with_default_$type";
458
459
        $table = new Schema\Table($tableName);
460
        $table->addColumn('id', $type, ['autoincrement' => true, 'notnull' => false, 'default' => 1]);
461
462
        $this->_sm->dropAndCreateTable($table);
463
464
        $columns = $this->_sm->listTableColumns($tableName);
465
466
        self::assertNull($columns['id']->getDefault());
467
    }
468
469
    /**
470
     * @group 2916
471
     */
472
    public function testAlterTableAutoIncrementBigInt() : void
473
    {
@@ 437-451 (lines=15) @@
434
     * @dataProvider serialTypes
435
     * @group 2906
436
     */
437
    public function testAutoIncrementCreatesSerialDataTypesWithoutADefaultValue(string $type) : void
438
    {
439
        $tableName = "test_serial_type_$type";
440
441
        $table = new Schema\Table($tableName);
442
        $table->addColumn('id', $type, ['autoincrement' => true, 'notnull' => false]);
443
444
        $this->_sm->dropAndCreateTable($table);
445
446
        $columns = $this->_sm->listTableColumns($tableName);
447
448
        self::assertNull($columns['id']->getDefault());
449
    }
450
451
    /**
452
     * @dataProvider serialTypes
453
     * @group 2906
454
     */