Wrote export tests.

This commit is contained in:
James Cole
2016-12-11 18:34:18 +01:00
parent 358d83dcfc
commit a67f10c99e
10 changed files with 217 additions and 180 deletions

View File

@@ -264,6 +264,29 @@ class TestData
DB::table('transaction_currencies')->insert($insert);
}
/**
*
*/
private function createExportJobs()
{
$insert = [];
$disk = Storage::disk('export');
foreach ($this->data['export-jobs'] as $job) {
$insert[] = [
'created_at' => $this->time,
'updated_at' => $this->time,
'user_id' => $job['user_id'],
'key' => $job['key'],
'status' => $job['status'],
];
$disk->put($job['key'] . '.zip', 'Nonsense data for "ziP" file.');
}
DB::table('export_jobs')->insert($insert);
// store fake export file:
}
/**
*
*/
@@ -863,6 +886,7 @@ class TestData
$this->createMultiTransfers();
$this->createImportJobs();
$this->createCurrencies();
$this->createExportJobs();
}
}