Gush\Tests\ConfigTest::testCreateConfigWithLoadedAndLocal PHP Method

testCreateConfigWithLoadedAndLocal() public method

    public function testCreateConfigWithLoadedAndLocal()
    {
        $config = $this->createConfig(['adapters' => ['github' => ['base_url' => 'url']]], ['repo_adapter' => ['name' => 'github']]);
        $this->assertEquals(['adapters' => ['github' => ['base_url' => 'url']], 'home' => $this->homedir . '/gush', 'home_config' => $this->homedir . '/gush/.gush.yml', 'local' => $this->homedir . '/local-gush', 'local_config' => $this->homedir . '/local-gush/.gush.yml', 'repo_adapter' => ['name' => 'github']], $config->toArray(Config::CONFIG_ALL));
        $this->assertEquals(['adapters' => ['github' => ['base_url' => 'url']]], $config->toArray(Config::CONFIG_SYSTEM));
        $this->assertEquals(['repo_adapter' => ['name' => 'github']], $config->toArray(Config::CONFIG_LOCAL));
    }