Fixed tests

This commit is contained in:
James Cole 2015-05-24 23:08:55 +02:00
parent 352b996ad2
commit 6af79ef601

View File

@ -122,6 +122,7 @@ class BudgetControllerTest extends TestCase
*/
public function testIndex()
{
$currency = FactoryMuffin::create('FireflyIII\Models\TransactionCurrency');
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
$this->be($budget->user);
$collection = new Collection;
@ -136,6 +137,7 @@ class BudgetControllerTest extends TestCase
Amount::shouldReceive('getCurrencySymbol')->andReturn('x');
Amount::shouldReceive('format')->andReturn('x');
Amount::shouldReceive('getCurrencyCode')->andReturn('X');
Amount::shouldReceive('getDefaultCurrency')->andReturn($currency);
$this->call('GET', '/budgets');
$this->assertResponseOk();