Improve test speed.

This commit is contained in:
James Cole 2018-04-27 12:39:25 +02:00
parent 81da7f3667
commit 5d4467a6c0
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -392,7 +392,9 @@ class CategoryControllerTest extends TestCase
$this->be($this->user());
$this->changeDateRange($this->user(), $range);
$response = $this->get(route('categories.show', [1, '2015-01-01']));
$today = new Carbon();
$today->subDay();
$response = $this->get(route('categories.show', [1, $today->format('Y-m-d')]));
$response->assertStatus(200);
$response->assertSee('<ol class="breadcrumb">');
}