Code Duplication    Length = 13-14 lines in 3 locations

Tests/Entity/PaymentTest.php 3 locations

@@ 116-128 (lines=13) @@
113
        $this->assertSame(25, $paymentLine->getVat());
114
    }
115
116
    public function testIsCaptureable1()
117
    {
118
        $payment = new Payment();
119
120
        $payment
121
            ->setReservedAmount(new Money(10000, new Currency('DKK')))
122
            ->setCapturedAmount(new Money(10000, new Currency('DKK')))
123
            ->setRefundedAmount(new Money(0, new Currency('DKK')))
124
            ->setCurrencySymbol('DKK')
125
        ;
126
127
        $this->assertSame(false, $payment->isCaptureable());
128
    }
129
130
    public function testIsCaptureable2()
131
    {
@@ 130-143 (lines=14) @@
127
        $this->assertSame(false, $payment->isCaptureable());
128
    }
129
130
    public function testIsCaptureable2()
131
    {
132
        $payment = new Payment();
133
134
        $payment
135
            ->setReservedAmount(new Money(10000, new Currency('DKK')))
136
            ->setCapturedAmount(new Money(1000, new Currency('DKK')))
137
            ->setRefundedAmount(new Money(0, new Currency('DKK')))
138
            ->setSupportsMultipleCaptures(false)
139
            ->setCurrencySymbol('DKK')
140
        ;
141
142
        $this->assertSame(false, $payment->isCaptureable());
143
    }
144
145
    public function testIsCaptureable3()
146
    {
@@ 145-157 (lines=13) @@
142
        $this->assertSame(false, $payment->isCaptureable());
143
    }
144
145
    public function testIsCaptureable3()
146
    {
147
        $payment = new Payment();
148
149
        $payment
150
            ->setReservedAmount(new Money(10000, new Currency('DKK')))
151
            ->setCapturedAmount(new Money(0, new Currency('DKK')))
152
            ->setRefundedAmount(new Money(0, new Currency('DKK')))
153
            ->setCurrencySymbol('DKK')
154
        ;
155
156
        $this->assertSame(true, $payment->isCaptureable());
157
    }
158
159
    public function testIsRefundable1()
160
    {