mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 11:48:53 +00:00
Some new tests
This commit is contained in:
@@ -34,7 +34,7 @@ class HomeControllerTest extends TestCase
|
||||
$start = '2014-03-01';
|
||||
$end = '2015-03-31';
|
||||
|
||||
$this->be(new FireflyIII\User);
|
||||
$this->be(FireflyIII\User::whereEmail('thegrumpydictator@gmail.com')->first());
|
||||
$this->call('POST', '/daterange', ['end' => $end, 'start' => $start,'_token' => 'replaceme']);
|
||||
$this->assertResponseOk();
|
||||
|
||||
@@ -52,7 +52,7 @@ class HomeControllerTest extends TestCase
|
||||
$start = '2015-03-01';
|
||||
$end = '2015-03-31';
|
||||
|
||||
$this->be(new FireflyIII\User);
|
||||
$this->be(FireflyIII\User::whereEmail('thegrumpydictator@gmail.com')->first());
|
||||
$this->call('POST', '/daterange', ['end' => $end, 'start' => $start,'_token' => 'replaceme']);
|
||||
$this->assertResponseOk();
|
||||
|
||||
@@ -66,7 +66,7 @@ class HomeControllerTest extends TestCase
|
||||
*/
|
||||
public function testIndexLoggedIn()
|
||||
{
|
||||
$this->be(new FireflyIII\User);
|
||||
$this->be(FireflyIII\User::whereEmail('thegrumpydictator@gmail.com')->first());
|
||||
$response = $this->call('GET', '/');
|
||||
$this->assertResponseOk();
|
||||
|
||||
|
Reference in New Issue
Block a user