Fix tests.

This commit is contained in:
James Cole
2018-08-17 06:45:57 +02:00
parent df0e2dd2a2
commit f319005357
11 changed files with 46 additions and 70 deletions

View File

@@ -97,6 +97,7 @@ class StageNewHandlerTest extends TestCase
'balance' => null,
'status' => null,
'type' => 'MonetaryAccountBank',
'iban' => 'SM72C9584723533916792029340',
'aliases' => [
[
'name' => $alias->getName(),
@@ -124,8 +125,8 @@ class StageNewHandlerTest extends TestCase
$repository->shouldReceive('setUser')->once();
$mAccount->shouldReceive('listing')->andReturn($list)->once();
$repository->shouldReceive('getConfiguration')->once()->andReturn([]);
$repository->shouldReceive('setConfiguration')->once()->withArgs([Mockery::any(), $expectedConfig]);
$repository->shouldReceive('setConfiguration')->once()->withArgs([Mockery::any(), $expectedConfig]);
$handler = new StageNewHandler;
$handler->setImportJob($job);