-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from benms/fix_latest_versions_list
Fix latest versions list.
- Loading branch information
Showing
2 changed files
with
12 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,8 +63,6 @@ public function testRetrievePreviousVersionExists() | |
$user->password = "12345"; | ||
$user->last_login = $user->freshTimestamp(); | ||
$user->save(); | ||
// Needed because otherwise timestamps are exactly the same | ||
sleep(1); | ||
|
||
$user->name = "John"; | ||
$user->save(); | ||
|
@@ -122,9 +120,6 @@ public function testGetResponsibleUserAttribute() | |
|
||
auth()->login($responsibleOrigUser); | ||
|
||
// Needed because otherwise timestamps are exactly the same | ||
sleep(1); | ||
|
||
$user = new TestVersionableUser(); | ||
$user->name = "John"; | ||
$user->email = "[email protected]"; | ||
|
@@ -341,7 +336,6 @@ public function testDiffTwoVersions() | |
$user->password = "12345"; | ||
$user->last_login = $user->freshTimestamp(); | ||
$user->save(); | ||
sleep(1); | ||
|
||
$user->name = "John"; | ||
$user->save(); | ||
|
@@ -361,7 +355,6 @@ public function testDiffIgnoresTimestamps() | |
$user->password = "12345"; | ||
$user->last_login = $user->freshTimestamp(); | ||
$user->save(); | ||
sleep(1); | ||
|
||
$user->name = "John"; | ||
$user->created_at = Carbon::now(); | ||
|
@@ -385,12 +378,10 @@ public function testDiffSpecificVersions() | |
$user->password = "12345"; | ||
$user->last_login = $user->freshTimestamp(); | ||
$user->save(); | ||
sleep(1); | ||
|
||
$user->name = "John"; | ||
$user->email = "[email protected]"; | ||
$user->save(); | ||
sleep(1); | ||
|
||
$user->name = "Julia"; | ||
$user->save(); | ||
|
@@ -419,8 +410,6 @@ public function testDynamicVersionModel() | |
$model->name = $name_v1 ; | ||
$model->save(); | ||
|
||
sleep(1); | ||
|
||
$model->name = $name_v2 ; | ||
$model->save(); | ||
|
||
|
@@ -455,8 +444,6 @@ public function testItUsesConfigurableVersionClass() | |
$model->password = $name_v1 ; | ||
$model->save(); | ||
|
||
sleep(1); | ||
|
||
$model->name = $name_v2 ; | ||
$model->save(); | ||
|
||
|
@@ -480,18 +467,12 @@ public function testKeepMaxVersionCount() | |
$model->name = $name_v1 ; | ||
$model->save(); | ||
|
||
sleep(1); | ||
|
||
$model->name = $name_v2 ; | ||
$model->save(); | ||
|
||
sleep(1); | ||
|
||
$model->name = $name_v3 ; | ||
$model->save(); | ||
|
||
sleep(1); | ||
|
||
$model->name = $name_v4 ; | ||
$model->save(); | ||
|
||
|