public function testValidateExpirationDateEnforceValid() {
$future = new \DateTime();
$future->add(new \DateInterval('P2D'));
- $future->setTime(0,0,0);
+ $future->setTime(1,2,3);
$expected = clone $future;
- $future->setTime(1,2,3);
+ $expected->setTime(0,0,0);
$share = $this->manager->newShare();
$share->setExpirationDate($future);
public function testValidateExpirationDateNoDefault() {
$date = new \DateTime();
$date->add(new \DateInterval('P5D'));
+ $date->setTime(1,2,3);
$expected = clone $date;
$expected->setTime(0,0,0);
public function testValidateExpirationDateDefault() {
$future = new \DateTime();
$future->add(new \DateInterval('P5D'));
- $future->setTime(0,0,0);
+ $future->setTime(1,2,3);
$expected = clone $future;
+ $expected->setTime(0,0,0);
$share = $this->manager->newShare();
$share->setExpirationDate($future);