Code Duplication    Length = 9-9 lines in 4 locations

Test/Unit/Model/Risk/AddresscheckTest.php 4 locations

@@ 109-117 (lines=9) @@
106
        ]);
107
    }
108
109
    public function testIsCheckNeededForQuoteMinBasket()
110
    {
111
        $this->databaseHelper->expects($this->any())
112
            ->method('getConfigParam')
113
            ->willReturnMap([['min_order_total', 'address_check', 'payone_protect', null, 10]]);
114
115
        $result = $this->classToTest->isCheckNeededForQuote(true, true, 5);
116
        $this->assertFalse($result);
117
    }
118
119
    public function testIsCheckNeededForQuoteMaxBasket()
120
    {
@@ 119-127 (lines=9) @@
116
        $this->assertFalse($result);
117
    }
118
119
    public function testIsCheckNeededForQuoteMaxBasket()
120
    {
121
        $this->databaseHelper->expects($this->any())
122
            ->method('getConfigParam')
123
            ->willReturnMap([['max_order_total', 'address_check', 'payone_protect', null, 10]]);
124
125
        $result = $this->classToTest->isCheckNeededForQuote(true, true, 15);
126
        $this->assertFalse($result);
127
    }
128
129
    public function testIsCheckNeededForQuoteVirtual()
130
    {
@@ 129-137 (lines=9) @@
126
        $this->assertFalse($result);
127
    }
128
129
    public function testIsCheckNeededForQuoteVirtual()
130
    {
131
        $this->databaseHelper->expects($this->any())
132
            ->method('getConfigParam')
133
            ->willReturnMap([['check_billing_for_virtual_order', 'address_check', 'payone_protect', null, 0]]);
134
135
        $result = $this->classToTest->isCheckNeededForQuote(true, true, 15);
136
        $this->assertFalse($result);
137
    }
138
139
    public function testIsCheckNeededForQuote()
140
    {
@@ 139-147 (lines=9) @@
136
        $this->assertFalse($result);
137
    }
138
139
    public function testIsCheckNeededForQuote()
140
    {
141
        $this->databaseHelper->expects($this->any())
142
            ->method('getConfigParam')
143
            ->willReturnMap([['check_billing_for_virtual_order', 'address_check', 'payone_protect', null, 0]]);
144
145
        $result = $this->classToTest->isCheckNeededForQuote(true, false, 15);
146
        $this->assertTrue($result);
147
    }
148
149
    public function testCorrectAddress()
150
    {