Neos\Flow\Cli\CommandManager::injectBootstrap PHP Method

injectBootstrap() public method

public injectBootstrap ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
return void
    public function injectBootstrap(Bootstrap $bootstrap)
    {
        $this->bootstrap = $bootstrap;
    }

Usage Example

 public function setUp()
 {
     $this->mockReflectionService = $this->createMock(ReflectionService::class);
     $this->commandManager = $this->getMockBuilder(Cli\CommandManager::class)->setMethods(['getAvailableCommands'])->getMock();
     $this->mockBootstrap = $this->getMockBuilder(Bootstrap::class)->disableOriginalConstructor()->getMock();
     $this->commandManager->injectBootstrap($this->mockBootstrap);
 }