/** * @inheritdoc */ protected function setUp() { parent::setUp(); $this->command = new RemoveCommand($this->getConfig()); $this->command->setLogger($this->logger); $this->command->setSites($this->sites); }
/** * @inheritdoc */ 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.')); }