diff options
Diffstat (limited to 'tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php')
-rw-r--r-- | tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php index 8e0ce2fe934..8fd86a638fe 100644 --- a/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php +++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php @@ -67,7 +67,10 @@ class ExpressionBuilderDBTest extends TestCase { ->from('users') ->where($query->expr()->like($query->createNamedParameter($param1), $query->createNamedParameter($param2))); - $this->assertEquals($match, $query->execute()->fetchColumn()); + $result = $query->execute(); + $column = $result->fetchColumn(); + $result->closeCursor(); + $this->assertEquals($match, $column); } public function ilikeProvider() { @@ -101,6 +104,9 @@ class ExpressionBuilderDBTest extends TestCase { ->from('users') ->where($query->expr()->iLike($query->createNamedParameter($param1), $query->createNamedParameter($param2))); - $this->assertEquals($match, $query->execute()->fetchColumn()); + $result = $query->execute(); + $column = $result->fetchColumn(); + $result->closeCursor(); + $this->assertEquals($match, $column); } } |