We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c98456 + b7d9df2 commit 3a34ac5Copy full SHA for 3a34ac5
tests/lib/Share20/ManagerTest.php
@@ -1536,6 +1536,7 @@ public function testValidateExpirationDateHookModification() {
1536
1537
$save = clone $nextWeek;
1538
$save->setTime(0, 0);
1539
+ $save->sub(new \DateInterval('P2D'));
1540
$save->setTimezone(new \DateTimeZone(date_default_timezone_get()));
1541
1542
$hookListener = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();
@@ -1549,7 +1550,6 @@ public function testValidateExpirationDateHookModification() {
1549
1550
1551
self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]);
1552
- $save->sub(new \DateInterval('P2D'));
1553
$this->assertEquals($save, $share->getExpirationDate());
1554
}
1555
0 commit comments