Fixed the tests.

This commit is contained in:
James Cole
2015-04-02 22:39:31 +02:00
parent 5362231efa
commit f301da83c6
5 changed files with 87 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
<?php
use FireflyIII\Models\Preference;
use FireflyIII\Models\TransactionCurrency;
/**
* Generated by PHPUnit_SkeletonGenerator on 2015-03-08 at 20:05:14.
@@ -35,8 +36,11 @@ class AccountControllerTest extends TestCase
$pref = new Preference;
$pref->data = '1M';
// CURRENCY:
$currency = new TransactionCurrency;
Preferences::shouldReceive('get', 'viewRange')->andReturn($pref);
Amount::shouldReceive('getDefaultCurrency')->andReturn(null);
Amount::shouldReceive('getDefaultCurrency')->andReturn($currency);
$response = $this->call('GET', '/accounts/create/asset');
$this->assertResponseOk();