Code Duplication    Length = 13-13 lines in 2 locations

Tests/OrderServiceTest.php 2 locations

@@ 194-206 (lines=13) @@
191
        }
192
    }
193
194
    private function setProductMock()
195
    {
196
        $array = [
197
            'getId' => 567
198
        ];
199
200
        foreach ($array as $method => $value) {
201
            $this->mcProduct
202
                ->expects($this->any())
203
                ->method($method)
204
                ->will($this->returnValue($value));
205
        }
206
    }
207
208
    private function setProductVariantMock()
209
    {
@@ 208-220 (lines=13) @@
205
        }
206
    }
207
208
    private function setProductVariantMock()
209
    {
210
        $array = [
211
            'getId' => 567,
212
        ];
213
214
        foreach ($array as $method => $value) {
215
            $this->mcProductVariant
216
                ->expects($this->any())
217
                ->method($method)
218
                ->will($this->returnValue($value));
219
        }
220
    }
221
222
    private function setCustomerMock()
223
    {