Code Duplication    Length = 7-8 lines in 2 locations

tests/Command/Config/DumpCommandTest.php 2 locations

@@ 94-101 (lines=8) @@
91
     * @covers \SilverLeague\Console\Command\Config\AbstractConfigCommand::getConfigOverrides
92
     * @covers \SilverLeague\Console\Command\Config\AbstractConfigCommand::getYamlConfig
93
     */
94
    public function testAllDataContainsBothYamlAndStatic()
95
    {
96
        Config::inst()->update('Gorilla', 'warfare', 'magpie fairy bread');
97
        $result = $this->executeTest(['type' => 'all'])->getDisplay();
98
        $this->assertContains('has_one', $result);
99
        $this->assertContains('%$DisplayErrorHandler', $result);
100
        $this->assertContains('magpie fairy bread', $result);
101
    }
102
103
    /**
104
     * Ensure that the configuration source can be set to only YAML file data
@@ 132-138 (lines=7) @@
129
     *
130
     * @covers \SilverLeague\Console\Command\Config\AbstractConfigCommand::getConfigOverrides
131
     */
132
    public function testGetOnlyOverrideConfiguration()
133
    {
134
        Config::inst()->update('Bookcase', 'dresser', 'drawers');
135
        $result = $this->executeTest(['type' => 'overrides'])->getDisplay();
136
        $this->assertContains('Bookcase', $result);
137
        $this->assertNotContains('Injector', $result);
138
    }
139
140
    /**
141
     * Test that the "all" type is treated the same as not providing one (i.e. default)