/**
  * @inheritdoc
  */
 protected function setUp()
 {
     parent::setUp();
     $this->sites->method('fetch')->with($this->equalTo(['org_id' => $this->organization->id]))->willReturn($this->sites);
     $this->command = new ListCommand($this->getConfig());
     $this->command->setSites($this->sites);
     $this->command->setLogger($this->logger);
     $this->command->setSession($this->session);
 }
 /**
  * @inheritdoc
  */
 protected function setUp()
 {
     parent::setUp();
     $this->org_memberships = $this->getMockBuilder(SiteOrganizationMemberships::class)->disableOriginalConstructor()->getMock();
     $this->site->method('getOrganizationMemberships')->willReturn($this->org_memberships);
     $this->organization->expects($this->any())->method('getName')->willReturn('org_id');
     $this->site->expects($this->any())->method('getName')->willReturn('my-site');
     $this->command = new AddCommand($this->getConfig());
     $this->command->setSites($this->sites);
     $this->command->setLogger($this->logger);
     $this->command->setSession($this->session);
 }
 /**
  * @inheritdoc
  */
 protected function setUp()
 {
     parent::setUp();
     $this->site->id = 'site_id';
     $this->org_site_membership = $this->getMockBuilder(OrganizationSiteMembership::class)->disableOriginalConstructor()->getMock();
     $this->org_site_membership->site = $this->site;
     $this->org_site_memberships = $this->getMockBuilder(OrganizationSiteMemberships::class)->disableOriginalConstructor()->getMock();
     $this->org_site_memberships->method('get')->with($this->site->id)->willReturn($this->org_site_membership);
     $this->organization->method('getSiteMemberships')->with()->willReturn($this->org_site_memberships);
     $this->command = new RemoveCommand($this->getConfig());
     $this->command->setSites($this->sites);
     $this->command->setLogger($this->logger);
     $this->command->setSession($this->session);
 }