public function testCreateBackupElementWithKeepFor()
{
$this->environment->id = 'env_id';
$params = ['element' => 'db', 'keep-for' => 89];
$this->backups->expects($this->once())->method('create')->with($this->equalTo(['element' => 'database', 'keep-for' => 89]))->willReturn($this->workflow);
$this->workflow->expects($this->once())->method('wait')->with();
$this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('Created a backup of the {env} environment.'), $this->equalTo(['env' => $this->environment->id]));
$out = $this->command->create("mysite.{$this->environment->id}", $params);
$this->assertNull($out);
}