Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 127-134 (lines=8) @@
124
        $this->assertTrue($result);
125
    }
126
127
    public function testCorrectAddress()
128
    {
129
        $address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
130
        $this->addresscheck->method('sendRequest')->willReturn(true);
131
132
        $result = $this->classToTest->correctAddress($address);
133
        $this->assertEquals($address, $result);
134
    }
135
136
    public function testHandleAddressManagement()
137
    {
@@ 274-282 (lines=9) @@
271
        $this->assertEquals($expected, $result);
272
    }
273
274
    public function testGetResponse()
275
    {
276
        $this->addresscheck->method('sendRequest')->willReturn(true);
277
278
        $address = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
279
280
        $result = $this->classToTest->getResponse($address);
281
        $this->assertTrue($result);
282
    }
283
}
284