Skip to content

Commit

Permalink
Add Test for empty begin in period model
Browse files Browse the repository at this point in the history
  • Loading branch information
froemken committed May 16, 2022
1 parent 03987e9 commit 7a0abe6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tests/Unit/Domain/Model/PeriodTest.php
Expand Up @@ -478,4 +478,17 @@ public function getBeginDateAndTimeWillReturnCombinedDateTime(): void
$this->subject->getBeginDateAndTime()
);
}

/**
* @test
*/
public function getBeginDateAndTimeWithEmptyBeginWillReturnCombinedDateTimeAtMidnight(): void
{
$this->subject->setDate(new \DateTime('now'));

self::assertEquals(
new \DateTime('now 00:00'),
$this->subject->getBeginDateAndTime()
);
}
}

0 comments on commit 7a0abe6

Please sign in to comment.