mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-10-13 17:02:06 -05:00
Some code cleanup [skip ci]
This commit is contained in:
1 parent
fdef0de163
commit
8bd445ab19
11 files changed
+17
-15
No files matched your search
@@ -269,7 +269,6 @@ class PiggyBankControllerTest extends TestCase
|
||||
|
||||
// mock!
|
||||
$accounts = $this->mock('FireflyIII\Repositories\Account\AccountRepositoryInterface');
|
||||
$piggyBanks = $this->mock('FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface');
|
||||
$accounts->shouldReceive('leftOnAccount')->andReturn(20);
|
||||
|
||||
Amount::shouldReceive('format')->andReturn('something');
|
||||
@@ -307,7 +306,6 @@ class PiggyBankControllerTest extends TestCase
|
||||
|
||||
// mock!
|
||||
$accounts = $this->mock('FireflyIII\Repositories\Account\AccountRepositoryInterface');
|
||||
$piggyBanks = $this->mock('FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface');
|
||||
$accounts->shouldReceive('leftOnAccount')->andReturn(20);
|
||||
|
||||
Amount::shouldReceive('format')->andReturn('something');
|
||||
|
||||
@@ -123,8 +123,8 @@ class ReportHelperTest extends TestCase
|
||||
// factory!
|
||||
$set = new Collection;
|
||||
$journals = new Collection;
|
||||
$left = FactoryMuffin::create('FireflyIII\Models\Account');
|
||||
$right = FactoryMuffin::create('FireflyIII\Models\Account');
|
||||
FactoryMuffin::create('FireflyIII\Models\Account');
|
||||
FactoryMuffin::create('FireflyIII\Models\Account');
|
||||
for ($i = 0; $i < 5; $i++) {
|
||||
$set->push(FactoryMuffin::create('FireflyIII\Models\Bill'));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user