public function setUp()
{
parent::setUp();
$this->workflow = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
// workflow succeeded
$this->workflow->expects($this->once())->method('checkProgress')->with()->willReturn(true);
$this->workflow->expects($this->once())->method('getMessage')->with()->willReturn('successful workflow');
$this->environment->expects($this->once())->method('setHttpsCertificate')->with(['cert' => '*CERT*', 'key' => '*KEY*', 'intermediary' => '*INT*'])->willReturn($this->workflow);
// should display a notice about the mode switch
$this->logger->expects($this->at(0))->method('log')->with($this->equalTo('notice'), $this->equalTo('SSL certificate updated. Converging loadbalancer.'));
$this->logger->expects($this->at(1))->method('log')->with($this->equalTo('notice'), $this->equalTo('successful workflow'));
$this->command = new SetCommand();
$this->command->setSites($this->sites);
$this->command->setLogger($this->logger);
}