Skip to content

Commit

Permalink
Fixing php5.6 test on query.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymarois committed Aug 17, 2018
1 parent 1e413bb commit a05fc65
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,9 @@ public function testQueryFromCacheAfterDelete()
->andWhere('email','==','[email protected]')
->resultDocuments();

$this->assertEquals($id2, current($results)->getId());
$r = current($results);

$this->assertEquals($id2, $r->getId());

$db->flush(true);
}
Expand Down Expand Up @@ -1070,8 +1072,10 @@ public function testQueryFromCacheAfterSave()
->andWhere('email','==','[email protected]')
->resultDocuments();

$this->assertEquals($id2, current($results)->getId());
$this->assertEquals('John', current($results)->name);
$r = current($results);

$this->assertEquals($id2, $r->getId());
$this->assertEquals('John', $r->name);

$db->flush(true);
}
Expand Down

0 comments on commit a05fc65

Please sign in to comment.