Pantheon\Terminus\UnitTests\Commands\Site\Team\RemoveCommandTest::testRemoveCommand PHP Method

testRemoveCommand() public method

Tests the site:team:remove command
public testRemoveCommand ( )
    public function testRemoveCommand()
    {
        $message = 'message';
        $this->user_membership->expects($this->once())->method('delete')->willReturn($this->workflow);
        $this->workflow->expects($this->once())->method('checkProgress')->with()->willReturn(true);
        $this->workflow->expects($this->once())->method('getMessage')->with()->willReturn($message);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo($message));
        $out = $this->command->remove('mysite', '[email protected]');
        $this->assertNull($out);
    }