Expand test to set a "custom" range.

This commit is contained in:
James Cole 2016-02-05 06:37:08 +01:00
parent a26e8a5f83
commit 4531d0ee32

View File

@ -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);
}
/**