Skip to content

Commit

Permalink
Fix error with hardcoded date
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Apr 17, 2023
1 parent b24aaee commit 6f0f8d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/sprinkles/account/tests/Integration/PDOStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PDOStorageTest extends TestCase
protected $validDBPersistentToken = 'd27d330764ef61e99adf5d16f90b95a2a63c209a';
protected $invalidDBToken = 'ec15fbc40cdff6a2050a1bcbbc1b2196222f13f4';

protected $expire = '2022-12-21 21:21:00';
protected $expire;

protected function setUp(): void
{
Expand All @@ -57,6 +57,9 @@ protected function setUp(): void
$this->setupTestDatabase();
$this->refreshDatabase();

// Set dynamic date (can't be done in property declaration)
$this->expire = Carbon::now()->addYear();

// Create a test user
$this->testUser = $this->createTestUser();

Expand Down

0 comments on commit 6f0f8d3

Please sign in to comment.