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 0e290ca + d6066bf commit 8d36336Copy full SHA for 8d36336
tests/lib/Share20/ManagerTest.php
@@ -1533,6 +1533,7 @@ public function testValidateExpirationDateHookModification() {
1533
1534
$save = clone $nextWeek;
1535
$save->setTime(0, 0);
1536
+ $save->sub(new \DateInterval('P2D'));
1537
$save->setTimezone(new \DateTimeZone(date_default_timezone_get()));
1538
1539
$hookListener = $this->getMockBuilder('Dummy')->setMethods(['listener'])->getMock();
@@ -1546,7 +1547,6 @@ public function testValidateExpirationDateHookModification() {
1546
1547
1548
self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]);
1549
- $save->sub(new \DateInterval('P2D'));
1550
$this->assertEquals($save, $share->getExpirationDate());
1551
}
1552
0 commit comments