Code Duplication    Length = 8-8 lines in 2 locations

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

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

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

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