tests/model/VersionedOwnershipTest.php 1 location
|
@@ 54-59 (lines=6) @@
|
51 |
|
* |
52 |
|
* @param int $minutes |
53 |
|
*/ |
54 |
|
protected function sleep($minutes) { |
55 |
|
$now = DBDatetime::now(); |
56 |
|
$date = DateTime::createFromFormat('Y-m-d H:i:s', $now->getValue()); |
57 |
|
$date->modify("+{$minutes} minutes"); |
58 |
|
DBDatetime::set_mock_now($date->format('Y-m-d H:i:s')); |
59 |
|
} |
60 |
|
|
61 |
|
/** |
62 |
|
* Test basic findOwned() in stage mode |
tests/model/VersionedTest.php 1 location
|
@@ 457-462 (lines=6) @@
|
454 |
|
* |
455 |
|
* @param int $minutes |
456 |
|
*/ |
457 |
|
protected function sleep($minutes) { |
458 |
|
$now = DBDatetime::now(); |
459 |
|
$date = DateTime::createFromFormat('Y-m-d H:i:s', $now->getValue()); |
460 |
|
$date->modify("+{$minutes} minutes"); |
461 |
|
DBDatetime::set_mock_now($date->format('Y-m-d H:i:s')); |
462 |
|
} |
463 |
|
|
464 |
|
/** |
465 |
|
* Tests records selected by specific version |