Code Duplication    Length = 15-15 lines in 2 locations

Test/Unit/Setup/InstallDataTest.php 1 location

@@ 48-62 (lines=15) @@
45
     */
46
    private $objectManager;
47
48
    protected function setUp()
49
    {
50
        $this->objectManager = new ObjectManager($this);
51
52
        $salesSetup = $this->getMockBuilder(SalesSetup::class)->disableOriginalConstructor()->getMock();
53
        $salesSetupFactory = $this->getMockBuilder(SalesSetupFactory::class)
54
            ->disableOriginalConstructor()
55
            ->setMethods(['create'])
56
            ->getMock();
57
        $salesSetupFactory->method('create')->willReturn($salesSetup);
58
59
        $this->classToTest = $this->objectManager->getObject(ClassToTest::class, [
60
            'salesSetupFactory' => $salesSetupFactory
61
        ]);
62
    }
63
64
    public function testInstall()
65
    {

Test/Unit/Setup/UpgradeDataTest.php 1 location

@@ 49-63 (lines=15) @@
46
     */
47
    private $objectManager;
48
49
    protected function setUp()
50
    {
51
        $this->objectManager = new ObjectManager($this);
52
53
        $salesSetup = $this->getMockBuilder(SalesSetup::class)->disableOriginalConstructor()->getMock();
54
        $salesSetupFactory = $this->getMockBuilder(SalesSetupFactory::class)
55
            ->disableOriginalConstructor()
56
            ->setMethods(['create'])
57
            ->getMock();
58
        $salesSetupFactory->method('create')->willReturn($salesSetup);
59
60
        $this->classToTest = $this->objectManager->getObject(ClassToTest::class, [
61
            'salesSetupFactory' => $salesSetupFactory
62
        ]);
63
    }
64
65
    public function testInstall()
66
    {