protected function setUp() { parent::setUp(); $this->upstream = $this->getMockBuilder(Upstream::class)->disableOriginalConstructor()->getMock(); $this->site->method('getUpstream')->willReturn($this->upstream); }
/** * @inheritdoc */ public function setUp() { parent::setUp(); $this->command = new ListCommand($this->getConfig()); $this->command->setSites($this->sites); $this->command->setLogger($this->logger); }