Code Duplication    Length = 8-10 lines in 2 locations

tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php 2 locations

@@ 671-678 (lines=8) @@
668
        );
669
    }
670
671
    public function testCompareForeignKey_RestrictNoAction_AreTheSame()
672
    {
673
        $fk1 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'NO ACTION'));
674
        $fk2 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'RESTRICT'));
675
676
        $c = new Comparator();
677
        self::assertFalse($c->diffForeignKey($fk1, $fk2));
678
    }
679
680
    /**
681
     * @group DBAL-492
@@ 1084-1093 (lines=10) @@
1081
    /**
1082
     * @group DBAL-617
1083
     */
1084
    public function testCompareQuotedAndUnquotedForeignKeyColumns()
1085
    {
1086
        $fk1 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'NO ACTION'));
1087
        $fk2 = new ForeignKeyConstraint(array("`foo`"), "bar", array("`baz`"), "fk1", array('onDelete' => 'NO ACTION'));
1088
1089
        $comparator = new Comparator();
1090
        $diff = $comparator->diffForeignKey($fk1, $fk2);
1091
1092
        self::assertFalse($diff);
1093
    }
1094
1095
    /**
1096
     * @param SchemaDiff $diff