public function testCloneAll()
{
$this->environment->expects($this->once())->method('getName')->willReturn('dev');
$worlflow1 = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
$this->environment->expects($this->once())->method('cloneFiles')->willReturn($worlflow1);
$worlflow1->expects($this->once())->method('checkProgress')->willReturn(true);
$worlflow1->expects($this->once())->method('getMessage')->willReturn('successful workflow');
$worlflow2 = $this->getMockBuilder(Workflow::class)->disableOriginalConstructor()->getMock();
$this->environment->expects($this->once())->method('cloneDatabase')->willReturn($worlflow2);
$worlflow2->expects($this->once())->method('checkProgress')->willReturn(true);
$worlflow2->expects($this->once())->method('getMessage')->willReturn('successful workflow');
$this->logger->expects($this->at(0))->method('log')->with($this->equalTo('notice'), $this->equalTo("Cloning files from {from_name} environment to {target_env} environment"), $this->equalTo(['from_name' => 'dev', 'target_env' => 'test']));
$this->logger->expects($this->at(1))->method('log')->with($this->equalTo('notice'), $this->equalTo('successful workflow'));
$this->logger->expects($this->at(2))->method('log')->with($this->equalTo('notice'), $this->equalTo("Cloning database from {from_name} environment to {target_env} environment"), $this->equalTo(['from_name' => 'dev', 'target_env' => 'test']));
$this->logger->expects($this->at(3))->method('log')->with($this->equalTo('notice'), $this->equalTo('successful workflow'));
$this->command->cloneContent('mysite.dev', 'test');
}