Release 2.25 (#5109)
This commit is contained in:
@@ -34,6 +34,7 @@ abstract class AbstractTimesheetCountedStatisticTest extends TestCase
|
||||
self::assertSame(0, $sut->getCounterExported());
|
||||
|
||||
$json = $sut->jsonSerialize();
|
||||
$this->assertIsArray($json);
|
||||
|
||||
$expected = [
|
||||
'duration' => 0,
|
||||
@@ -121,6 +122,7 @@ abstract class AbstractTimesheetCountedStatisticTest extends TestCase
|
||||
$sut->setInternalRateExported(27.15);
|
||||
|
||||
$json = $sut->jsonSerialize();
|
||||
$this->assertIsArray($json);
|
||||
foreach (['duration', 'duration_billable', 'duration_exported', 'rate', 'rate_billable', 'rate_billable_exported', 'rate_exported', 'rate_internal', 'amount', 'amount_billable', 'amount_exported'] as $key) {
|
||||
self::assertArrayHasKey($key, $json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user