Code Duplication    Length = 12-16 lines in 2 locations

tests/Doctrine/Tests/DBAL/Functional/Schema/MySqlSchemaManagerTest.php 1 location

@@ 264-279 (lines=16) @@
261
    /**
262
     * @group DBAL-423
263
     */
264
    public function testDiffListGuidTableColumn()
265
    {
266
        $offlineTable = new Table('list_guid_table_column');
267
        $offlineTable->addColumn('col_guid', 'guid');
268
269
        $this->_sm->dropAndCreateTable($offlineTable);
270
271
        $onlineTable = $this->_sm->listTableDetails('list_guid_table_column');
272
273
        $comparator = new Comparator();
274
275
        $this->assertFalse(
276
            $comparator->diffTable($offlineTable, $onlineTable),
277
            "No differences should be detected with the offline vs online schema."
278
        );
279
    }
280
281
    /**
282
     * @group DBAL-1082

tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php 1 location

@@ 1183-1194 (lines=12) @@
1180
     * @group 2782
1181
     * @group 6654
1182
     */
1183
    public function testComparatorShouldReturnFalseWhenLegacyJsonArrayColumnHasComment() : void
1184
    {
1185
        $table = new Table('json_array_test');
1186
        $table->addColumn('parameters', 'json_array');
1187
1188
        $this->_sm->createTable($table);
1189
1190
        $comparator = new Comparator();
1191
        $tableDiff  = $comparator->diffTable($this->_sm->listTableDetails('json_array_test'), $table);
1192
1193
        self::assertFalse($tableDiff);
1194
    }
1195
1196
    /**
1197
     * @group 2782