Gush\Tests\ConfigTest::testGetConfigValueByKey PHP Method

testGetConfigValueByKey() public method

    public function testGetConfigValueByKey()
    {
        $config = $this->createConfig();
        $this->assertEquals($this->homedir . '/gush', $config->get('home'));
        $this->assertEquals($this->homedir . '/gush/.gush.yml', $config->get('home_config'));
        $this->assertNull($config->get('no-key'));
        $this->assertEquals([], $config->get('adapters', Config::CONFIG_ALL));
        $this->assertEquals([], $config->get('adapters', Config::CONFIG_SYSTEM));
        $this->assertNull($config->get('adapters', Config::CONFIG_LOCAL));
    }