Skip to content

Commit

Permalink
freeze time
Browse files Browse the repository at this point in the history
  • Loading branch information
norbybaru committed Jun 16, 2024
1 parent cd994aa commit 5a5d842
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/MakeCommandTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

namespace NorbyBaru\Modularize\Tests;

use Illuminate\Support\Carbon;

abstract class MakeCommandTestCase extends TestCase
{
public string $moduleName = 'Blog';

public function setup(): void
{
Carbon::setTestNow(testNow: Carbon::now());
parent::setUp();
}

public function teardown(): void
{
$this->cleanUp();
Expand Down

0 comments on commit 5a5d842

Please sign in to comment.