public function testApiCommand_InvokesProperAction()
{
$command = $this->createCommand();
$manager = $this->createManager();
$channel = $this->createChannel();
$project = $this->createProjectManager();
$project->expects($this->once())->method('startProject')->will($this->returnCallback(function () {
return new PromiseFulfilled('ok');
}));
$result = $this->callProtectedMethod($command, 'command', []);
$expect = $this->createCallableMock();
$expect->expects($this->once())->method('__invoke');
$result->then($expect);
}