More test data and an actual test.

This commit is contained in:
James Cole
2016-01-17 07:18:35 +01:00
parent 2b6790f83f
commit b13b58a2b2
4 changed files with 88 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
<?php
use Carbon\Carbon;
use FireflyIII\User;
/**
* Class TestCase
@@ -27,6 +28,23 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app;
}
/**
* @return User
*/
public function user()
{
return User::find(1);
}
/**
* @return User
*/
public function emptyUser()
{
return User::find(2);
}
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.