mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 02:57:45 +00:00
Fix various tests.
This commit is contained in:
@@ -53,7 +53,7 @@ class ImportAccountTest extends TestCase
|
||||
$repository->shouldReceive('setUser')->once()->withArgs([Mockery::any()]);
|
||||
$repository->shouldReceive('getAccountType')->twice()->withArgs([AccountType::ASSET])->andReturn($accountType);
|
||||
$repository->shouldReceive('getAccountsByType')->twice()->withArgs([[AccountType::ASSET]])->andReturn(new Collection());
|
||||
$repository->shouldReceive('find')->once()->withArgs([1])->andReturn($account);
|
||||
$repository->shouldReceive('findNull')->once()->withArgs([1])->andReturn($account);
|
||||
|
||||
// create import account.
|
||||
$importAccount = new ImportAccount;
|
||||
@@ -79,8 +79,6 @@ class ImportAccountTest extends TestCase
|
||||
// mock calls:
|
||||
$repository->shouldReceive('setUser')->once()->withArgs([Mockery::any()]);
|
||||
$repository->shouldReceive('getAccountType')->once()->withArgs([AccountType::ASSET])->andReturn($accountType);
|
||||
//$repository->shouldReceive('getAccountsByType')->once()->withArgs([[AccountType::ASSET]])->andReturn(new Collection());
|
||||
//$repository->shouldReceive('find')->once()->withArgs([1])->andReturn($account);
|
||||
|
||||
// create import account.
|
||||
$importAccount = new ImportAccount;
|
||||
|
Reference in New Issue
Block a user