mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Fix tests.
This commit is contained in:
@@ -164,7 +164,7 @@ class BulkControllerTest extends TestCase
|
|||||||
->withArgs([Mockery::any(), $data['budget_id']]);
|
->withArgs([Mockery::any(), $data['budget_id']]);
|
||||||
|
|
||||||
$repository->shouldReceive('updateTags')->times(4)->andReturn(new TransactionJournal())
|
$repository->shouldReceive('updateTags')->times(4)->andReturn(new TransactionJournal())
|
||||||
->withArgs([Mockery::any(), $tags]);
|
->withArgs([Mockery::any(), ['tags' => $tags]]);
|
||||||
|
|
||||||
|
|
||||||
$route = route('transactions.bulk.update');
|
$route = route('transactions.bulk.update');
|
||||||
|
@@ -216,6 +216,7 @@ class MassControllerTest extends TestCase
|
|||||||
$repository->shouldReceive('update')->once();
|
$repository->shouldReceive('update')->once();
|
||||||
$repository->shouldReceive('find')->once()->andReturn($deposit);
|
$repository->shouldReceive('find')->once()->andReturn($deposit);
|
||||||
$repository->shouldReceive('getTransactionType')->andReturn('Deposit');
|
$repository->shouldReceive('getTransactionType')->andReturn('Deposit');
|
||||||
|
$repository->shouldReceive('getNoteText')->andReturn('Some note');
|
||||||
|
|
||||||
$this->session(['transactions.mass-edit.uri' => 'http://localhost']);
|
$this->session(['transactions.mass-edit.uri' => 'http://localhost']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user