mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed tests
This commit is contained in:
parent
352b996ad2
commit
6af79ef601
@ -122,7 +122,8 @@ class BudgetControllerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testIndex()
|
public function testIndex()
|
||||||
{
|
{
|
||||||
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
|
$currency = FactoryMuffin::create('FireflyIII\Models\TransactionCurrency');
|
||||||
|
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
|
||||||
$this->be($budget->user);
|
$this->be($budget->user);
|
||||||
$collection = new Collection;
|
$collection = new Collection;
|
||||||
$collection->push($budget);
|
$collection->push($budget);
|
||||||
@ -136,6 +137,7 @@ class BudgetControllerTest extends TestCase
|
|||||||
Amount::shouldReceive('getCurrencySymbol')->andReturn('x');
|
Amount::shouldReceive('getCurrencySymbol')->andReturn('x');
|
||||||
Amount::shouldReceive('format')->andReturn('x');
|
Amount::shouldReceive('format')->andReturn('x');
|
||||||
Amount::shouldReceive('getCurrencyCode')->andReturn('X');
|
Amount::shouldReceive('getCurrencyCode')->andReturn('X');
|
||||||
|
Amount::shouldReceive('getDefaultCurrency')->andReturn($currency);
|
||||||
$this->call('GET', '/budgets');
|
$this->call('GET', '/budgets');
|
||||||
|
|
||||||
$this->assertResponseOk();
|
$this->assertResponseOk();
|
||||||
|
Loading…
Reference in New Issue
Block a user