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

testParse() public method

testParse
Since: 3.0.0
public testParse ( )
    public function testParse()
    {
        /* setup */
        $this->_config->init(Stream::url('root/config.php'));
        $this->_request->setServer('argv', ['console.php', 'config', 'parse', '--db-url', 'mysql://root:[email protected]/test']);
        $configCommand = new Command\Config($this->_registry, $this->_request, $this->_config);
        /* actual */
        $actual = $configCommand->run('cli');
        /* compare */
        $this->assertTrue($actual);
    }