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