helpers refactoring

This commit is contained in:
Peter Papp
2021-03-31 08:27:28 +02:00
parent 6ac6528243
commit a8fa3694be
30 changed files with 85 additions and 211 deletions

View File

@@ -32,7 +32,7 @@ class SchedulerTest extends TestCase
$share = Share::factory(Share::class)
->create([
'expire_in' => 24,
'created_at' => Carbon::now()->subDay(),
'created_at' => now()->subDay(),
]);
$this->scheduler->delete_expired_shared_links();
@@ -58,7 +58,7 @@ class SchedulerTest extends TestCase
$zip = Zip::factory(Zip::class)->create([
'basename' => 'EHWKcuvKzA4Gv29v-archive.zip',
'created_at' => Carbon::now()->subDay(),
'created_at' => now()->subDay(),
]);
$this->scheduler->delete_old_zips();