mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
New (empty) tests for models.
This commit is contained in:
@@ -58,7 +58,7 @@ class ChartBillControllerTest extends TestCase
|
||||
$accounts->shouldReceive('getCreditCards')->andReturn($creditCards);
|
||||
$accounts->shouldReceive('getTransfersInRange')->andReturn(new Collection);
|
||||
$repository->shouldReceive('createFakeBill')->andReturn($bills->first());
|
||||
Steam::shouldReceive('balance')->andReturn(-10,0);
|
||||
Steam::shouldReceive('balance')->andReturn(-10, 0);
|
||||
|
||||
|
||||
$this->call('GET', '/chart/bill/frontpage');
|
||||
|
||||
@@ -35,7 +35,7 @@ class ChartCategoryControllerTest extends TestCase
|
||||
$category = FactoryMuffin::create('FireflyIII\Models\Category');
|
||||
$this->be($category->user);
|
||||
|
||||
$this->call('GET', '/chart/category/'.$category->id.'/all');
|
||||
$this->call('GET', '/chart/category/' . $category->id . '/all');
|
||||
$this->assertResponseOk();
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ class ChartCategoryControllerTest extends TestCase
|
||||
$category = FactoryMuffin::create('FireflyIII\Models\Category');
|
||||
$this->be($category->user);
|
||||
|
||||
$this->call('GET', '/chart/category/'.$category->id.'/month');
|
||||
$this->call('GET', '/chart/category/' . $category->id . '/month');
|
||||
$this->assertResponseOk();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user