Cleaning up test data.

This commit is contained in:
James Cole
2016-02-05 15:01:33 +01:00
parent 8e1dbc03d9
commit e2d0ee125f
6 changed files with 962 additions and 849 deletions

View File

@@ -31,15 +31,17 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
'data' => $range,
]
);
// set period to match?
}
// if selected "custom", change the session to a weird custom range:
// (20 days):
if($range === "custom") {
if ($range === "custom") {
$this->session(
[
'start' => Carbon::now(),
'end' => Carbon::now()->subDays(20),
]
'end' => Carbon::now()->subDays(20),
]
);
}
}