Large diffs are not rendered by default.

BIN +75 Bytes (100%) s3bk.phar
Binary file not shown.
@@ -1 +1,2 @@
37ad3cf53c2862a3faf485fb3927debef324052f s3bk.phar
8ece68abf7c2d581f57077e5ed7c586d23736486 s3bk.phar

@@ -15,7 +15,7 @@ public function testCreateFromRowAssignsCorrectly()
'mount' => 'test',
'path' => 'test/path',
'interval' => 'PT5M',
'lastBackup' => '2015-04-10T12:00:00+00:00'
'last_backup' => '2015-04-10T12:00:00+00:00'
];
$res = Mount::createFromRow($row);
$this->assertEquals('test', $res->getName());
@@ -47,7 +47,7 @@ public function testUploadDirectoryUploadsAndPrunesTheDirectory()
'vfs://test-mount',
'test',
null,
['debug' => true]
['debug' => true, 'multipart_upload_size' => 31457280]
);
$retval = [['Key' => 'file'], ['Key' => 'unknown-file']];
$mockS3->shouldReceive('getIterator')
@@ -17,29 +17,30 @@ public function testTheCorrectMountsAreScheduledForBackup()
$data = [
Mount::createFromRow(
[
'mount' => 'not-run',
'path' => 'not-run',
'mount' => 'not-run',
'path' => 'not-run',
'interval' => 'PT1M',
]
),
Mount::createFromRow(
[
'mount' => 'needs-run',
'path' => 'needs-run',
'interval' => 'PT1M',
'lastBackup' => $lastRunTime->format('c'),
'mount' => 'needs-run',
'path' => 'needs-run',
'interval' => 'PT1M',
'last_backup' => $lastRunTime->format('c'),
]
),
Mount::createFromRow(
[
'mount' => 'has-run',
'path' => 'has-run',
'interval' => 'PT1H',
'lastBackup' => $lastRunTime->format('c'),
'mount' => 'has-run',
'path' => 'has-run',
'interval' => 'PT1H',
'last_backup' => $lastRunTime->format('c'),
]
),
];
$mockDb = m::mock('S3Bk\Service\Database');

$mockDb = m::mock('S3Bk\Service\Database');
$mockDb->shouldReceive('fetchMounts')
->once()
->andReturn($data);