New tests.

This commit is contained in:
James Cole
2016-12-17 19:19:49 +01:00
parent f3398c7dec
commit 7ecd691ee2
6 changed files with 28 additions and 18 deletions

View File

@@ -292,9 +292,12 @@ class TestData
*/
private function createImportJobs()
{
$disk = Storage::disk('upload');
$insert = [];
foreach ($this->data['import-jobs'] as $job) {
$insert[] = [
$insert[]
= [
'created_at' => $this->time,
'updated_at' => $this->time,
'user_id' => $job['user_id'],
@@ -304,6 +307,8 @@ class TestData
'extended_status' => json_encode($job['extended_status']),
'configuration' => json_encode($job['configuration']),
];
$disk->put($job['key'] . '.upload', Crypt::encrypt(''));
}
DB::table('import_jobs')->insert($insert);
}