From c454e85ad4de5e04bc7bcfa78e5f88ab39c15cb1 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Wed, 9 Jul 2025 19:37:51 -0500 Subject: [PATCH] fix: date calculations cause failed tests --- tests/DailyChangeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DailyChangeTest.php b/tests/DailyChangeTest.php index 43cbc84..fe8800e 100644 --- a/tests/DailyChangeTest.php +++ b/tests/DailyChangeTest.php @@ -221,7 +221,7 @@ class DailyChangeTest extends TestCase $second_transaction = Transaction::create([ 'symbol' => 'AAPL', 'portfolio_id' => $portfolio->id, - 'date' => now()->subYears(3), + 'date' => now()->subDays(1080), // 3 years 'quantity' => 1, 'cost_basis' => 39.89, 'transaction_type' => 'BUY',