Code Duplication    Length = 13-13 lines in 2 locations

Test/Unit/Model/Methods/DebitTest.php 1 location

@@ 72-84 (lines=13) @@
69
        $this->classToTest->setInfoInstance($info);
70
    }
71
72
    public function testGetPaymentSpecificParameters()
73
    {
74
        $order = $this->getMockBuilder(Order::class)->disableOriginalConstructor()->getMock();
75
76
        $result = $this->classToTest->getPaymentSpecificParameters($order);
77
        $expected = [
78
            'bankcountry' => 'info',
79
            'iban' => 'info',
80
            'bic' => 'info',
81
            'mandate_identification' => '123'
82
        ];
83
        $this->assertEquals($expected, $result);
84
    }
85
86
    public function testAssignData()
87
    {

Test/Unit/Model/Methods/Payolution/InstallmentTest.php 1 location

@@ 93-105 (lines=13) @@
90
        $this->assertInstanceOf(ClassToTest::class, $result);
91
    }
92
93
    public function testGetSubTypeSpecificParameters()
94
    {
95
        $order = $this->getMockBuilder(Order::class)->disableOriginalConstructor()->getMock();
96
97
        $result = $this->classToTest->getSubTypeSpecificParameters($order);
98
        $expected = [
99
            'iban' => 'value',
100
            'bic' => 'value',
101
            'add_paydata[installment_duration]' => 'value',
102
            'workorderid' => 'WORKORDERID'
103
        ];
104
        $this->assertEquals($expected, $result);
105
    }
106
}
107