Bolt\Tests\Nut\ConfigSetTest::testDefaultFile PHP Method

testDefaultFile() public method

public testDefaultFile ( )
    public function testDefaultFile()
    {
        $app = $this->getApp();
        $filesystem = new Filesystem(new Local(PHPUNIT_ROOT . '/resources/'));
        $app['filesystem']->mountFilesystem('config', $filesystem);
        $command = new ConfigSet($app);
        $tester = new CommandTester($command);
        $app['resources']->setPath('config', PHPUNIT_ROOT . '/resources');
        $tester->execute(['key' => 'nonexistent', 'value' => 'test']);
        $this->assertEquals("The key 'nonexistent' was not found in config.yml.\n", $tester->getDisplay());
    }