Redaxscript\Tests\Console\Command\ConfigTest::testSet PHP Method

testSet() public method

testSet
Since: 3.0.0
public testSet ( )
    public function testSet()
    {
        /* setup */
        $this->_config->init(Stream::url('root/config.php'));
        $this->_request->setServer('argv', ['console.php', 'config', 'set', '--db-type', 'sqlite', '--db-host', '127.0.0.1']);
        $configCommand = new Command\Config($this->_registry, $this->_request, $this->_config);
        /* actual */
        $actual = $configCommand->run('cli');
        /* compare */
        $this->assertTrue($actual);
    }