mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
Fixed the tests.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user