public function testApiCommand_InvokesProperAction() { $command = $this->createCommand(); $expected = gethostbyname(gethostname()); $this->assertSame($expected, $this->callProtectedMethod($command, 'command', [])); }