Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Speed up some tests. [skip ci]
James Colee56920edeebc
diff --git a/tests/acceptance/Controllers/BudgetControllerTest.php b/tests/acceptance/Controllers/BudgetControllerTest.phpindex 1462eeaf21..ab7c9e8463 100644--- a/tests/acceptance/Controllers/BudgetControllerTest.php+++ b/tests/acceptance/Controllers/BudgetControllerTest.php@@ -6,6 +6,8 @@* This software may be modified and distributed under the terms* of the MIT license. See the LICENSE file for details.*/+use Carbon\Carbon;+use Illuminate\Pagination\LengthAwarePaginator;/**@@ -129,6 +131,12 @@ class BudgetControllerTest extends TestCase*/public function testShow($range){+ // mock some stuff:+ $repository = $this->mock('FireflyIII\Repositories\Budget\BudgetRepositoryInterface');+ $repository->shouldReceive('getJournals')->once()->andReturn(new LengthAwarePaginator([], 0, 50));+ $repository->shouldReceive('firstActivity')->once()->andReturn(new Carbon);+ $repository->shouldReceive('spentPerDay')->once()->andReturn([]);+$this->be($this->user());$this->changeDateRange($this->user(), $range);$this->call('GET', '/budgets/show/1');