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

testSet() public method

testSet
Since: 3.0.0
public testSet ( )
    public function testSet()
    {
        /* setup */
        $this->_request->setServer('argv', ['console.php', 'setting', 'set', '--key', 'copyright', '--value', 'Redaxscript']);
        $settingCommand = new Command\Setting($this->_registry, $this->_request, $this->_config);
        /* actual */
        $actual = $settingCommand->run('cli');
        /* compare */
        $this->assertTrue($actual);
    }