Some new tests

This commit is contained in:
James Cole
2015-03-28 06:48:38 +01:00
parent c9358acf5d
commit 6157db0b6a
5 changed files with 88 additions and 16 deletions

View File

@@ -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();