From 4531d0ee32fa8550c2affe2f5c314e94ed68afe1 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 5 Feb 2016 06:37:08 +0100 Subject: [PATCH] Expand test to set a "custom" range. --- tests/TestCase.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 65fc680453..15d5dcd64d 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -32,6 +32,16 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase ] ); } + // if selected "custom", change the session to a weird custom range: + // (20 days): + if($range === "custom") { + $this->session( + [ + 'start' => Carbon::now(), + 'end' => Carbon::now()->subDays(20), + ] + ); + } } /** @@ -120,11 +130,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase public function tearDown() { parent::tearDown(); - - // delete copy original. - //$original = __DIR__.'/../storage/database/testing.db'; - //unlink($original); - } /**