public function testCreate()
{
$backups = $this->_createBackups();
$this->workflows->expects($this->once())->method('create')->with('do_export', ['params' => ['code' => true, 'database' => true, 'files' => true, 'entry_type' => 'backup', 'ttl' => 31536000.0]])->willReturn($this->workflow);
$actual = $backups->create();
$this->assertEquals($this->workflow, $actual);
$backups = $this->_createBackups();
$this->workflows->expects($this->once())->method('create')->with('do_export', ['params' => ['code' => true, 'database' => false, 'files' => false, 'entry_type' => 'backup', 'ttl' => 5 * 86400]])->willReturn($this->workflow);
$actual = $backups->create(['element' => 'code', 'keep-for' => 5]);
$this->assertEquals($this->workflow, $actual);
$backups = $this->_createBackups();
$this->workflows->expects($this->once())->method('create')->with('do_export', ['params' => ['code' => false, 'database' => true, 'files' => false, 'entry_type' => 'backup', 'ttl' => 5 * 86400]])->willReturn($this->workflow);
$actual = $backups->create(['element' => 'database', 'keep-for' => 5]);
$this->assertEquals($this->workflow, $actual);
$backups = $this->_createBackups();
$this->workflows->expects($this->once())->method('create')->with('do_export', ['params' => ['code' => false, 'database' => false, 'files' => true, 'entry_type' => 'backup', 'ttl' => 5 * 86400]])->willReturn($this->workflow);
$actual = $backups->create(['element' => 'files', 'keep-for' => 5]);
$this->assertEquals($this->workflow, $actual);
}