Skip to content
Permalink
Browse files

Changing test to avoid weirdness in travis

  • Loading branch information...
lorenzo committed Mar 26, 2016
1 parent 6e4a05f commit 7f00058ce9285e50ab998b0a3d45ecb2a469d0f5
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/Database/QueryTest.php
@@ -416,16 +416,16 @@ public function testSelectJoinWithCallback()
$query = new Query($this->connection);
$types = ['created' => 'datetime'];
$result = $query
->select(['title', 'name' => 'comments.comment'])
->from('articles')
->select(['name', 'commentary' => 'comments.comment'])
->from('authors')
->innerJoin('comments', function ($exp, $q) use ($query, $types) {
$this->assertSame($q, $query);
$exp->add(['created >' => new \DateTime('2007-03-18 10:45:23')], $types);
return $exp;
})
->execute();
$this->assertEquals(
['title' => 'First Article', 'name' => 'Second Comment for First Article'],
['name' => 'mariano', 'commentary' => 'Second Comment for First Article'],
$result->fetch('assoc')
);
$result->closeCursor();

0 comments on commit 7f00058

Please sign in to comment.
You can’t perform that action at this time.