Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed tests

  • Loading branch information...
commit 4a93bf46ea190c9cff2004c8d8bc142c69f0cf11 1 parent 70bed11
@navruzm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/LMongoEloquentRelationTest.php
View
4 tests/LMongoEloquentRelationTest.php
@@ -35,8 +35,8 @@ public function testTouchMethodUpdatesRelatedTimestamps()
$relation = new HasOne($builder, $parent, 'foreign_key');
$related->shouldReceive('getCollection')->andReturn('collection');
$related->shouldReceive('getUpdatedAtColumn')->andReturn('updated_at');
- $related->shouldReceive('freshTimestamp')->andReturn(new MongoDate);
- $builder->shouldReceive('update')->once()->with(array('updated_at' => new MongoDate));
+ $related->shouldReceive('freshTimestamp')->andReturn(1);
+ $builder->shouldReceive('update')->once()->with(array('updated_at' => 1));
$relation->touch();
}
Please sign in to comment.
Something went wrong with that request. Please try again.