/** * @test */ public function setControllerObjectNameAndSetControllerCommandNameUnsetTheBuiltCommandObject() { $this->request->setControllerObjectName('Tx_Extbase_Command_CacheCommandController'); $this->request->setControllerCommandName('flush'); $this->request->getCommand(); $this->request->setControllerObjectName('Tx_SomeExtension_Command_BeerCommandController'); $this->request->setControllerCommandName('drink'); $this->mockObjectManager->expects($this->once())->method('get')->with(\TYPO3\CMS\Extbase\Mvc\Cli\Command::class, 'Tx_SomeExtension_Command_BeerCommandController', 'drink'); $this->request->getCommand(); }