Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed some tests.
James Cole8417f45d0267
diff --git a/tests/acceptance/Controllers/AccountControllerTest.php b/tests/acceptance/Controllers/AccountControllerTest.phpindex ed97ae26df..f790c2ae24 100644--- a/tests/acceptance/Controllers/AccountControllerTest.php+++ b/tests/acceptance/Controllers/AccountControllerTest.php@@ -74,7 +74,7 @@ class AccountControllerTest extends TestCase}/**- * @covers FireflyIII\Http\Controllers\AccountController::show+ * @covers FireflyIII\Http\Controllers\AccountController::show* @dataProvider dateRangeProvider** @param string $range@@ -82,20 +82,18 @@ class AccountControllerTest extends TestCasepublic function testShow(string $range){- $this->be($this->user());- $this->changeDateRange($this->user(), $range);-$tasker = $this->mock(\FireflyIII\Repositories\Account\AccountTaskerInterface::class);$tasker->shouldReceive('amountOutInPeriod')->withAnyArgs()->andReturn('-1');$tasker->shouldReceive('amountInInPeriod')->withAnyArgs()->andReturn('1');-+ $this->be($this->user());+ $this->changeDateRange($this->user(), $range);$this->call('GET', route('accounts.show', [1]));$this->assertResponseStatus(200);}/**- * @covers FireflyIII\Http\Controllers\AccountController::showWithDate+ * @covers FireflyIII\Http\Controllers\AccountController::showWithDate* @dataProvider dateRangeProvider** @param string $range@@ -104,7 +102,7 @@ class AccountControllerTest extends TestCase{$this->be($this->user());$this->changeDateRange($this->user(), $range);- $this->call('GET', route('accounts.show', [1, '2016-01-01']));+ $this->call('GET', route('accounts.show.date', [1, '2016-01-01']));$this->assertResponseStatus(200);}