Permalink
Browse files

fixed tests

  • Loading branch information...
1 parent 70bed11 commit 4a93bf46ea190c9cff2004c8d8bc142c69f0cf11 @navruzm committed Jul 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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();
}

0 comments on commit 4a93bf4

Please sign in to comment.