Release 2.12 (#4609)
This commit is contained in:
@@ -24,7 +24,7 @@ class BillableCalculatorTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getTestData
|
||||
*/
|
||||
public function testCalculate(bool $billable, string $mode, bool $expected, ?Customer $customer, ?Project $project, ?Activity $activity)
|
||||
public function testCalculate(bool $billable, string $mode, bool $expected, ?Customer $customer, ?Project $project, ?Activity $activity): void
|
||||
{
|
||||
$sut = new BillableCalculator();
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ use PHPUnit\Framework\TestCase;
|
||||
*/
|
||||
class DurationCalculatorTest extends TestCase
|
||||
{
|
||||
public function testCalculateWithEmptyEnd()
|
||||
public function testCalculateWithEmptyEnd(): void
|
||||
{
|
||||
$record = new Timesheet();
|
||||
$record->setBegin(new \DateTime());
|
||||
@@ -34,7 +34,7 @@ class DurationCalculatorTest extends TestCase
|
||||
/**
|
||||
* @dataProvider getTestData
|
||||
*/
|
||||
public function testCalculate($rules, $start, $end, $expectedDuration)
|
||||
public function testCalculate($rules, $start, $end, $expectedDuration): void
|
||||
{
|
||||
$record = new Timesheet();
|
||||
$record->setBegin($start);
|
||||
|
||||
@@ -38,7 +38,7 @@ class RateCalculatorTest extends TestCase
|
||||
return $mock;
|
||||
}
|
||||
|
||||
public function testCalculateWithTimesheetHourlyRate()
|
||||
public function testCalculateWithTimesheetHourlyRate(): void
|
||||
{
|
||||
$record = new Timesheet();
|
||||
$record->setEnd(new \DateTime());
|
||||
@@ -52,7 +52,7 @@ class RateCalculatorTest extends TestCase
|
||||
$this->assertEquals(50, $record->getRate());
|
||||
}
|
||||
|
||||
public function testCalculateWithTimesheetFixedRate()
|
||||
public function testCalculateWithTimesheetFixedRate(): void
|
||||
{
|
||||
$record = new Timesheet();
|
||||
$record->setEnd(new \DateTime());
|
||||
@@ -192,7 +192,7 @@ class RateCalculatorTest extends TestCase
|
||||
return $user;
|
||||
}
|
||||
|
||||
public function testCalculateWithEmptyEnd()
|
||||
public function testCalculateWithEmptyEnd(): void
|
||||
{
|
||||
$record = new Timesheet();
|
||||
$record->setBegin(new \DateTime());
|
||||
@@ -213,7 +213,7 @@ class RateCalculatorTest extends TestCase
|
||||
*
|
||||
* @dataProvider getRuleDefinitions
|
||||
*/
|
||||
public function testCalculateWithRulesByUsersHourlyRate($duration, $rules, $expectedRate)
|
||||
public function testCalculateWithRulesByUsersHourlyRate($duration, $rules, $expectedRate): void
|
||||
{
|
||||
$end = new \DateTime('12:00:00', new \DateTimeZone('UTC'));
|
||||
$start = clone $end;
|
||||
|
||||
Reference in New Issue
Block a user