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

testLock() public method

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