Code Duplication    Length = 12-13 lines in 3 locations

Tests/Entity/PaymentTest.php 3 locations

@@ 80-91 (lines=12) @@
77
        $this->assertSame('fraudexplanation', $payment->getFraudExplanation());
78
    }
79
80
    public function testIsCaptureable1()
81
    {
82
        $payment = new Payment();
83
84
        $payment
85
            ->setReservedAmount(100)
86
            ->setCapturedAmount(100)
87
            ->setRefundedAmount(0)
88
        ;
89
90
        $this->assertSame(false, $payment->isCaptureable());
91
    }
92
93
    public function testIsCaptureable2()
94
    {
@@ 93-105 (lines=13) @@
90
        $this->assertSame(false, $payment->isCaptureable());
91
    }
92
93
    public function testIsCaptureable2()
94
    {
95
        $payment = new Payment();
96
97
        $payment
98
            ->setReservedAmount(100)
99
            ->setCapturedAmount(10)
100
            ->setRefundedAmount(0)
101
            ->setSupportsMultipleCaptures(false)
102
        ;
103
104
        $this->assertSame(false, $payment->isCaptureable());
105
    }
106
107
    public function testIsCaptureable3()
108
    {
@@ 107-118 (lines=12) @@
104
        $this->assertSame(false, $payment->isCaptureable());
105
    }
106
107
    public function testIsCaptureable3()
108
    {
109
        $payment = new Payment();
110
111
        $payment
112
            ->setReservedAmount(100)
113
            ->setCapturedAmount(0)
114
            ->setRefundedAmount(0)
115
        ;
116
117
        $this->assertSame(true, $payment->isCaptureable());
118
    }
119
120
    public function testIsRefundable1()
121
    {