aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/DB/QueryBuilder/FunctionBuilderTest.php')
-rw-r--r--tests/lib/DB/QueryBuilder/FunctionBuilderTest.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php b/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
index fad991bfa90..71ae3d5c7f6 100644
--- a/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
+++ b/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
@@ -49,7 +49,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals('foobar', $column);
}
@@ -62,7 +62,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(md5('foobar'), $column);
}
@@ -75,7 +75,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals('oo', $column);
}
@@ -88,7 +88,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals('oobar', $column);
}
@@ -101,7 +101,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals('foobar', $column);
}
@@ -114,7 +114,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(3, $column);
}
@@ -127,7 +127,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(1, $column);
}
@@ -140,7 +140,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $column = $result->fetchColumn();
+ $column = $result->fetchOne();
$result->closeCursor();
$this->assertGreaterThan(1, $column);
}
@@ -176,7 +176,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $row = $result->fetchColumn();
+ $row = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(null, $row);
}
@@ -192,7 +192,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $row = $result->fetchColumn();
+ $row = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(null, $row);
}
@@ -211,7 +211,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $row = $result->fetchColumn();
+ $row = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(20, $row);
}
@@ -230,7 +230,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $row = $result->fetchColumn();
+ $row = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(10, $row);
}
@@ -243,7 +243,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $row = $result->fetchColumn();
+ $row = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(2, $row);
}
@@ -256,7 +256,7 @@ class FunctionBuilderTest extends TestCase {
->setMaxResults(1);
$result = $query->execute();
- $row = $result->fetchColumn();
+ $row = $result->fetchOne();
$result->closeCursor();
$this->assertEquals(1, $row);
}