Code Duplication    Length = 6-6 lines in 2 locations

tests/model/VersionedOwnershipTest.php 1 location

@@ 46-51 (lines=6) @@
43
	 *
44
	 * @param int $minutes
45
	 */
46
	protected function sleep($minutes) {
47
		$now = SS_Datetime::now();
48
		$date = DateTime::createFromFormat('Y-m-d H:i:s', $now->getValue());
49
		$date->modify("+{$minutes} minutes");
50
		SS_Datetime::set_mock_now($date->format('Y-m-d H:i:s'));
51
	}
52
53
	/**
54
	 * Test basic findOwned() in stage mode

tests/model/VersionedTest.php 1 location

@@ 423-428 (lines=6) @@
420
	 *
421
	 * @param int $minutes
422
	 */
423
	protected function sleep($minutes) {
424
		$now = SS_Datetime::now();
425
		$date = DateTime::createFromFormat('Y-m-d H:i:s', $now->getValue());
426
		$date->modify("+{$minutes} minutes");
427
		SS_Datetime::set_mock_now($date->format('Y-m-d H:i:s'));
428
	}
429
430
	/**
431
	 * Tests records selected by specific version