Code Duplication    Length = 15-15 lines in 2 locations

Test/Unit/Setup/InstallDataTest.php 1 location

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

Test/Unit/Setup/UpgradeDataTest.php 1 location

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