Code Duplication    Length = 7-9 lines in 2 locations

tests/N98/Magento/Command/Eav/Attribute/ViewCommandTest.php 1 location

@@ 24-30 (lines=7) @@
21
    /**
22
     * Initialize the command and the tester
23
     */
24
    public function setUp()
25
    {
26
        $this->getApplication()->add(new ViewCommand());
27
        $this->command = $this->getApplication()->find('eav:attribute:view');
28
29
        $this->commandTester = new CommandTester($this->command);
30
    }
31
32
    /**
33
     * Ensure that the ViewCommand returns information about the supplied attribute

tests/N98/Magento/Command/System/Setup/ChangeVersionCommandTest.php 1 location

@@ 23-31 (lines=9) @@
20
    /**
21
     * Set up the test dependencies
22
     */
23
    public function setUp()
24
    {
25
        $application = $this->getApplication();
26
        $application->add(new ChangeVersionCommand());
27
28
        $this->command = $this->getApplication()->find('sys:setup:change-version');
29
30
        $this->commandTester = new CommandTester($this->command);
31
    }
32
33
    /**
34
     * Ensure that the version for a random Magento module can be changed