Skip to content

Commit

Permalink
Update tests for php5.6 and Carbon v1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieutu committed Jun 15, 2017
1 parent ff707c8 commit 7cd6ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Database/DatabaseEloquentIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,8 @@ public function testIsAfterRetrievingTheSameModel()

public function testFreshMethodOnModel()
{
\Carbon\Carbon::setTestNow('now');
$now = \Carbon\Carbon::getTestNow();
$now = \Carbon\Carbon::now();
\Carbon\Carbon::setTestNow($now);

$storedUser1 = EloquentTestUser::create(['id' => 1, 'email' => 'taylorotwell@gmail.com']);
$storedUser1->newQuery()->update(['email' => 'dev@mathieutu.ovh', 'name' => 'Mathieu TUDISCO']);
Expand Down

0 comments on commit 7cd6ae2

Please sign in to comment.