Code Duplication    Length = 10-10 lines in 2 locations

src/TestSuite/IntegrationTestCase.php 1 location

@@ 67-76 (lines=10) @@
64
    {
65
        parent::setUp();
66
67
        if (!Plugin::loaded($this->_corePlugin)) {
68
            $loadParams = [
69
                'bootstrap' => true,
70
                'routes'    => true,
71
                'path'      => ROOT . DS,
72
            ];
73
74
            Plugin::load($this->_corePlugin, $loadParams);
75
            Plugin::routes($this->_corePlugin);
76
        }
77
78
        if ($this->_plugin !== $this->_corePlugin) {
79
            $options = [

src/TestSuite/TestCase.php 1 location

@@ 67-76 (lines=10) @@
64
            Plugin::routes($this->_plugin);
65
        }
66
67
        if (!Plugin::loaded($this->_corePlugin)) {
68
            $loadParams = [
69
                'bootstrap' => true,
70
                'routes'    => true,
71
                'path'      => ROOT . DS,
72
            ];
73
74
            Plugin::load($this->_corePlugin, $loadParams);
75
            Plugin::routes($this->_corePlugin);
76
        }
77
    }
78
79
    /**