Code Duplication    Length = 12-13 lines in 3 locations

Tests/Entity/PaymentTest.php 3 locations

@@ 99-110 (lines=12) @@
96
        $this->assertEquals($payment, $paymentFromDandomainPayment);
97
    }
98
99
    public function testIsCaptureable1()
100
    {
101
        $payment = new Payment();
102
103
        $payment
104
            ->setReservedAmount(100)
105
            ->setCapturedAmount(100)
106
            ->setRefundedAmount(0)
107
        ;
108
109
        $this->assertSame(false, $payment->isCaptureable());
110
    }
111
112
    public function testIsCaptureable2()
113
    {
@@ 112-124 (lines=13) @@
109
        $this->assertSame(false, $payment->isCaptureable());
110
    }
111
112
    public function testIsCaptureable2()
113
    {
114
        $payment = new Payment();
115
116
        $payment
117
            ->setReservedAmount(100)
118
            ->setCapturedAmount(10)
119
            ->setRefundedAmount(0)
120
            ->setSupportsMultipleCaptures(false)
121
        ;
122
123
        $this->assertSame(false, $payment->isCaptureable());
124
    }
125
126
    public function testIsCaptureable3()
127
    {
@@ 126-137 (lines=12) @@
123
        $this->assertSame(false, $payment->isCaptureable());
124
    }
125
126
    public function testIsCaptureable3()
127
    {
128
        $payment = new Payment();
129
130
        $payment
131
            ->setReservedAmount(100)
132
            ->setCapturedAmount(0)
133
            ->setRefundedAmount(0)
134
        ;
135
136
        $this->assertSame(true, $payment->isCaptureable());
137
    }
138
139
    public function testIsRefundable1()
140
    {