Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ousid authored and actions-user committed Feb 10, 2022
1 parent 591e5e3 commit a47564c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/FilterByPopularityTimeFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function scopeWithTotalVisitCount(Builder $builder)

/**
* Get the popular visits all time
*
*
* @param Builder $builder
* @return \Illuminate\Database\Eloquent\Builder
*/
Expand Down
8 changes: 4 additions & 4 deletions tests/Feature/Visits/PopularityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
->times(2)
->create()
->each->visit();
$popularPost = Post::factory()->create();
$popularPost = Post::factory()->create();



Carbon::setTestNow(now()->subDays(2));
$popularPost->visit();

Carbon::setTestNow();
$popularPost->visit();

$posts = Post::popularAllTime()->get();

expect($posts->count())->toBe(3);
Expand Down

0 comments on commit a47564c

Please sign in to comment.