From 6f0f8d3c13bf1eee7b7218824c1def6bd142521b Mon Sep 17 00:00:00 2001 From: Louis Charette Date: Sun, 16 Apr 2023 22:23:04 -0400 Subject: [PATCH] Fix error with hardcoded date --- app/sprinkles/account/tests/Integration/PDOStorageTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/sprinkles/account/tests/Integration/PDOStorageTest.php b/app/sprinkles/account/tests/Integration/PDOStorageTest.php index 106b9050d..05c74d3b5 100644 --- a/app/sprinkles/account/tests/Integration/PDOStorageTest.php +++ b/app/sprinkles/account/tests/Integration/PDOStorageTest.php @@ -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 { @@ -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();