Skip to content

Commit

Permalink
Fixes test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Oct 4, 2024
1 parent fa84dad commit 022f1dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Jobs/CleanUnusedUploadedImages.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function getDateRange(CarbonImmutable $start, CarbonImmutable $end): arr

while ($start->lte($end)) {
$dates[] = $start->format('Y-m-d');
$start = $start->addDay();
$start = $start->addDay()->startOfDay();
}

return $dates;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Jobs/CleanUnusedUploadedImagesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$file2 = UploadedFile::fake()->image('image2.jpg');
$file3 = UploadedFile::fake()->image('image3.jpg');

$path1 = Storage::disk('public')->putFile("images/{$day}", $file1);
$path1 = $file1->store("images/{$day}", 'public');
$path2 = $file2->store("images/{$day}", 'public');
$path3 = $file3->store("images/{$day}", 'public');

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Livewire/Questions/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
$this->travel(1)->seconds();

// pinned question
$pinnedQuestion = Question::factory()->create([
$pinnedQuestion = Question::factory()->create([
'pinned' => true,
'to_id' => $user->id,
'answer' => 'pinned question',
Expand Down

0 comments on commit 022f1dd

Please sign in to comment.