Code Duplication    Length = 8-8 lines in 2 locations

Test/Unit/Block/Onepage/Review/DetailsTest.php 1 location

@@ 72-79 (lines=8) @@
69
        $this->assertEquals($expected, $result);
70
    }
71
72
    public function testGetAddress()
73
    {
74
        $expected = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
75
        $this->quote->method('getShippingAddress')->willReturn($expected);
76
77
        $result = $this->classToTest->getAddress();
78
        $this->assertEquals($expected, $result);
79
    }
80
}
81

Test/Unit/Block/Onepage/ReviewTest.php 1 location

@@ 143-150 (lines=8) @@
140
        ]);
141
    }
142
143
    public function testGetShippingAddress()
144
    {
145
        $expected = $this->getMockBuilder(Address::class)->disableOriginalConstructor()->getMock();
146
        $this->quote->method('getShippingAddress')->willReturn($expected);
147
        $this->quote->method('getIsVirtual')->willReturn(false);
148
        $result = $this->classToTest->getShippingAddress();
149
        $this->assertEquals($expected, $result);
150
    }
151
152
    public function testGetShippingAddressVirtual()
153
    {