Skip to content

Commit

Permalink
Close the cursor after checking the count.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 27, 2015
1 parent f94b743 commit 711c47b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/TestCase/Database/QueryTest.php
Expand Up @@ -1967,6 +1967,9 @@ public function testUnionOrderBy()
->union($union)
->execute();
$this->assertCount(self::COMMENT_COUNT + self::ARTICLE_COUNT, $result);

$rows = $result->fetchAll();
$this->assertCount(self::COMMENT_COUNT + self::ARTICLE_COUNT, $result);
}

/**
Expand Down

0 comments on commit 711c47b

Please sign in to comment.