Code Duplication    Length = 7-8 lines in 2 locations

tests/Command/Config/DumpCommandTest.php 2 locations

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