Save workspace changes
This commit is contained in:
@@ -63,6 +63,17 @@ it('skips private artworks', function () {
|
||||
expect(app(TrendingService::class)->recalculate('24h'))->toBe(0);
|
||||
});
|
||||
|
||||
it('skips artworks with private visibility even if is_public is true', function () {
|
||||
Artwork::factory()->create([
|
||||
'is_public' => true,
|
||||
'visibility' => Artwork::VISIBILITY_PRIVATE,
|
||||
'is_approved' => true,
|
||||
'published_at' => now()->subDay(),
|
||||
]);
|
||||
|
||||
expect(app(TrendingService::class)->recalculate('24h'))->toBe(0);
|
||||
});
|
||||
|
||||
it('skips unapproved artworks', function () {
|
||||
Artwork::factory()->create([
|
||||
'is_public' => true,
|
||||
|
||||
Reference in New Issue
Block a user