Preparations for coming features (#1818)

* removed unused convert_tz code
* added timestampable listener to support automatic updates of change columns
* added modified_at, billable and category timesheet fields
* new timesheet API query parameter modified_after
This commit is contained in:
Kevin Papst
2020-07-13 23:35:06 +02:00
committed by GitHub
parent f2dd2331a5
commit f57b314466
18 changed files with 379 additions and 150 deletions

View File

@@ -10,6 +10,7 @@
namespace App\Tests\Repository\Query;
use App\Repository\Query\InvoiceQuery;
use App\Repository\Query\TimesheetQuery;
/**
* @covers \App\Repository\Query\InvoiceQuery
@@ -33,13 +34,19 @@ class InvoiceQueryTest extends TimesheetQueryTest
$this->assertState($sut);
$this->assertExported($sut);
$this->assertMarkAsExported($sut);
$this->assertModifiedAfter($sut);
self::assertEquals(TimesheetQuery::STATE_BILLABLE, $sut->getBillable());
self::assertTrue($sut->isBillable());
self::assertFalse($sut->isNotBillable());
$this->assertBillable($sut);
}
protected function assertMarkAsExported(InvoiceQuery $sut)
{
$this->assertFalse($sut->isMarkAsExported());
self::assertFalse($sut->isMarkAsExported());
$sut->setMarkAsExported(true);
$this->assertTrue($sut->isMarkAsExported());
self::assertTrue($sut->isMarkAsExported());
}
}