mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Test now works.
This commit is contained in:
parent
8204e46086
commit
e57ce6e644
@ -138,11 +138,14 @@ class BudgetControllerTest extends TestCase
|
|||||||
|
|
||||||
public function testPostUpdateIncome()
|
public function testPostUpdateIncome()
|
||||||
{
|
{
|
||||||
|
$budget = FactoryMuffin::create('FireflyIII\Models\Budget');
|
||||||
|
$this->be($budget->user);
|
||||||
$date = Carbon::now()->startOfMonth()->format('FY');
|
$date = Carbon::now()->startOfMonth()->format('FY');
|
||||||
Preferences::shouldReceive('set')->once()->withArgs(['budgetIncomeTotal' . $date, 1001]);
|
Preferences::shouldReceive('set')->once()->withArgs(['budgetIncomeTotal' . $date, 1001]);
|
||||||
|
|
||||||
$this->call('POST', '/budgets/income', ['_token' => 'replaceme', 'amount' => 1001]);
|
$this->call('POST', '/budgets/income', ['_token' => 'replaceme', 'amount' => 1001]);
|
||||||
$this->assertResponseStatus(302);
|
$this->assertResponseStatus(302);
|
||||||
|
$this->assertRedirectedToRoute('budgets.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testShow()
|
public function testShow()
|
||||||
|
Loading…
Reference in New Issue
Block a user