Pantheon\Terminus\UnitTests\Commands\Domain\LookupCommandTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->command = new LookupCommand($this->getConfig());
        $this->command->setLogger($this->logger);
        $this->command->setSites($this->sites);
        $this->site->id = 'site_id';
        $this->site_name = 'site_name';
        $this->sites->expects($this->once())->method('fetch')->with()->willReturn($this->sites);
        $this->sites->expects($this->once())->method('all')->with()->willReturn([$this->site]);
        $this->domains->expects($this->any())->method('fetch')->with()->willReturn($this->domains);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('This operation may take a long time to run.'));
    }