release 1.17.2 (#3135)
* allow to input password interactively in console * added block to simplify overwriting export template parts * prevent installation in PHP 8.1 * composer update * phpunit version to 9 * support negative amounts in excel export * added system configuration actions for calendar, weekly timesheet, users * added method to render text with full markdown support
This commit is contained in:
@@ -34,7 +34,7 @@ class CsvRendererTest extends AbstractRendererTest
|
||||
public function getTestModel()
|
||||
{
|
||||
return [
|
||||
['400', '2437.12', ' EUR 1,947.99 ', 6, 5, 1, 2, 2]
|
||||
['400', '2437.12', ' EUR 1,947.99 ', 7, 6, 1, 2, 2]
|
||||
];
|
||||
}
|
||||
|
||||
@@ -107,8 +107,40 @@ class CsvRendererTest extends AbstractRendererTest
|
||||
27 => 'ORDER-123',
|
||||
];
|
||||
|
||||
self::assertEquals(6, \count($all));
|
||||
$expected2 = [
|
||||
0 => '2019-06-16',
|
||||
1 => '12:00',
|
||||
2 => '12:06',
|
||||
3 => '400',
|
||||
4 => '0',
|
||||
5 => '',
|
||||
6 => 'nivek',
|
||||
7 => 'nivek',
|
||||
8 => 'Customer Name',
|
||||
9 => 'project name',
|
||||
10 => 'activity description',
|
||||
11 => '',
|
||||
12 => '',
|
||||
13 => '',
|
||||
14 => '',
|
||||
15 => '',
|
||||
16 => ' EUR -100.92',
|
||||
17 => '',
|
||||
18 => '',
|
||||
19 => 'customer-bar',
|
||||
20 => '',
|
||||
21 => 'project-foo2',
|
||||
22 => 'activity-bar',
|
||||
23 => 'timesheet',
|
||||
24 => 'work',
|
||||
25 => 'A-0123456789',
|
||||
26 => 'DE-9876543210',
|
||||
27 => 'ORDER-123',
|
||||
];
|
||||
|
||||
self::assertEquals(7, \count($all));
|
||||
self::assertEquals($expected, $all[5]);
|
||||
self::assertEquals($expected2, $all[6]);
|
||||
self::assertEquals(\count($expected), \count($all[0]));
|
||||
self::assertEquals('foo', $all[4][14]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user