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 BillsTest extends TestCase
public function testGetMapBasic()
{
$one = new Bill();
$one->id = 1;
$one->id = 5;
$one->name = 'Something';
$one->match = 'hi,bye';
$two = new Account;
$two->id = 2;
$two->id = 9;
$two->name = 'Else';
$two->match = 'match';
$collection = new Collection([$one, $two]);
@@ -59,8 +59,8 @@ class BillsTest extends TestCase
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
1 => 'Something [hi,bye]',
2 => 'Else [match]',
9 => 'Else [match]',
5 => 'Something [hi,bye]',
];
$this->assertEquals($result, $mapping);
}