Pantheon\Terminus\UnitTests\Commands\Site\Org\AddCommandTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    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);
    }
AddCommandTest