Pantheon\Terminus\UnitTests\Commands\Auth\MachineTokenDeleteCommandTest::testMachineTokenDelete PHP Method

testMachineTokenDelete() public method

Tests the machine-token:delete command.
public testMachineTokenDelete ( ) : void
return void
    public function testMachineTokenDelete()
    {
        $token = $this->getMockBuilder(MachineToken::class)->disableOriginalConstructor()->getMock();
        $token->expects($this->once())->method('delete')->willReturn(['status_code' => 200]);
        $this->machine_tokens->expects($this->once())->method('get')->with($this->equalTo('123'))->willReturn($token);
        $this->command->delete('123');
    }