Fixed tests to account for issue fixed by #1097

This commit is contained in:
James Cole
2018-01-06 07:33:30 +01:00
parent ed0e14aee5
commit 7fa937e80b
18 changed files with 66 additions and 53 deletions

View File

@@ -41,11 +41,11 @@ class OpposingAccountIbansTest extends TestCase
public function testGetMapBasic()
{
$one = new Account;
$one->id = 1;
$one->id = 21;
$one->name = 'Something';
$one->iban = 'IBAN';
$two = new Account;
$two->id = 2;
$two->id = 17;
$two->name = 'Else';
$collection = new Collection([$one, $two]);
@@ -59,9 +59,9 @@ class OpposingAccountIbansTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
1 => 'IBAN (Something)',
2 => 'Else',
0 => strval(trans('import.map_do_not_map')),
17 => 'Else',
21 => 'IBAN (Something)',
];
$this->assertEquals($result, $mapping);
}