Neos\Flow\Tests\Unit\Cli\RequestTest::setControllerObjectNameAndSetControllerCommandNameUnsetTheBuiltCommandObject PHP Метод

setControllerObjectNameAndSetControllerCommandNameUnsetTheBuiltCommandObject() публичный Метод

    public function setControllerObjectNameAndSetControllerCommandNameUnsetTheBuiltCommandObject()
    {
        $request = new Request();
        $request->setControllerObjectName(CacheCommandController::class);
        $request->setControllerCommandName('flush');
        $request->getCommand();
        $request->setControllerObjectName('Neos\\Flow\\Command\\BeerCommandController');
        $request->setControllerCommandName('drink');
        $command = $request->getCommand();
        $this->assertEquals('neos.flow:beer:drink', $command->getCommandIdentifier());
    }