public function testRemove()
{
$email = '[email protected]';
$org_name = 'org_name';
$full_name = 'Dev User';
$workflow = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
$this->org_user_memberships->expects($this->once())->method('get')->with($email)->willReturn($this->org_user_membership);
$this->org_user_membership->expects($this->once())->method('delete')->with()->willReturn($workflow);
$workflow->expects($this->once())->method('checkProgress')->willReturn(true);
$this->organization->expects($this->once())->method('get')->with($this->equalTo('profile'))->willReturn((object) ['name' => $org_name]);
$this->org_user_membership->expects($this->once())->method('getUser')->with()->willReturn($this->user);
$this->user->expects($this->once())->method('get')->with($this->equalTo('profile'))->willReturn((object) compact('full_name'));
$this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('{member} has been removed from the {org} organization.'), $this->equalTo(['member' => $full_name, 'org' => $org_name]));
$out = $this->command->remove($this->organization->id, $email);
$this->assertNull($out);
}