weekly quick-entry form (#2793)

This commit is contained in:
Kevin Papst
2021-10-18 11:12:46 +02:00
committed by GitHub
parent 64893e0a95
commit 9ab098af86
105 changed files with 3356 additions and 778 deletions

View File

@@ -31,7 +31,18 @@ class ProjectFormTypeQueryTest extends BaseFormTypeQueryTest
$sut->setWithCustomer(true);
self::assertTrue($sut->withCustomer());
self::assertNull($sut->getProjectToIgnore());
self::assertInstanceOf(ProjectFormTypeQuery::class, $sut->setProjectToIgnore($project));
$sut->setProjectToIgnore($project);
self::assertSame($project, $sut->getProjectToIgnore());
self::assertNotNull($sut->getProjectStart());
self::assertNotNull($sut->getProjectEnd());
$date = new \DateTime('2019-04-20');
$sut->setProjectStart($date);
self::assertSame($date, $sut->getProjectStart());
$date = new \DateTime('2020-01-01');
$sut->setProjectEnd($date);
self::assertSame($date, $sut->getProjectEnd());
}
}