mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Fixes tests.
This commit is contained in:
@@ -68,6 +68,7 @@ class MetaPieChart implements MetaPieChartInterface
|
|||||||
$this->accounts = new Collection;
|
$this->accounts = new Collection;
|
||||||
$this->budgets = new Collection;
|
$this->budgets = new Collection;
|
||||||
$this->categories = new Collection;
|
$this->categories = new Collection;
|
||||||
|
$this->tags = new Collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -18,6 +18,7 @@ class AccountControllerTest extends TestCase
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseAccounts
|
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::expenseAccounts
|
||||||
|
* @covers \FireflyIII\Generator\Chart\Basic\GeneratorInterface::singleSet
|
||||||
* @dataProvider dateRangeProvider
|
* @dataProvider dateRangeProvider
|
||||||
*
|
*
|
||||||
* @param string $range
|
* @param string $range
|
||||||
@@ -61,6 +62,8 @@ class AccountControllerTest extends TestCase
|
|||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::frontpage
|
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::frontpage
|
||||||
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::__construct
|
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::__construct
|
||||||
|
* @covers \FireflyIII\Http\Controllers\Chart\AccountController::accountBalanceChart
|
||||||
|
* @covers \FireflyIII\Generator\Chart\Basic\GeneratorInterface::multiSet
|
||||||
* @dataProvider dateRangeProvider
|
* @dataProvider dateRangeProvider
|
||||||
*
|
*
|
||||||
* @param string $range
|
* @param string $range
|
||||||
|
@@ -67,6 +67,18 @@ class TransactionControllerTest extends TestCase
|
|||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers \FireflyIII\Http\Controllers\Controller::redirectToAccount
|
||||||
|
* @covers \FireflyIII\Http\Controllers\TransactionController::show
|
||||||
|
*/
|
||||||
|
public function testShowOpeningBalance()
|
||||||
|
{
|
||||||
|
$this->be($this->user());
|
||||||
|
$journal = $this->user()->transactionJournals()->where('transaction_type_id',4)->first();
|
||||||
|
$response = $this->get(route('transactions.show', [$journal->id]));
|
||||||
|
$response->assertStatus(302);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\TransactionController::show
|
* @covers \FireflyIII\Http\Controllers\TransactionController::show
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user