summaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-03-26 20:45:49 +0200
committerRobin Appelman <robin@icewind.nl>2017-03-30 11:15:06 +0200
commitd4a7cfec7ca61ba48fdb20134409ad2500e0e7a7 (patch)
tree19b791be97d0704b369bb226fc4aeccb51fff5c4 /tests/lib/DB
parentfee818f49347e332aa59bdbfc82847d7964cc653 (diff)
downloadnextcloud-server-d4a7cfec7ca61ba48fdb20134409ad2500e0e7a7.tar.gz
nextcloud-server-d4a7cfec7ca61ba48fdb20134409ad2500e0e7a7.zip
rename fun to func
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/DB')
-rw-r--r--tests/lib/DB/QueryBuilder/FunctionBuilderTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php b/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
index b1ef3d7bb75..c270e105fc1 100644
--- a/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
+++ b/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
@@ -43,7 +43,7 @@ class FunctionBuilderTest extends TestCase {
public function testConcat() {
$query = $this->connection->getQueryBuilder();
- $query->select($query->fun()->concat($query->createNamedParameter('foo'), new Literal("'bar'")));
+ $query->select($query->func()->concat($query->createNamedParameter('foo'), new Literal("'bar'")));
$this->assertEquals('foobar', $query->execute()->fetchColumn());
}
@@ -51,7 +51,7 @@ class FunctionBuilderTest extends TestCase {
public function testMd5() {
$query = $this->connection->getQueryBuilder();
- $query->select($query->fun()->md5($query->createNamedParameter('foobar')));
+ $query->select($query->func()->md5($query->createNamedParameter('foobar')));
$this->assertEquals(md5('foobar'), $query->execute()->fetchColumn());
}
@@ -59,7 +59,7 @@ class FunctionBuilderTest extends TestCase {
public function testSubstring() {
$query = $this->connection->getQueryBuilder();
- $query->select($query->fun()->substring($query->createNamedParameter('foobar'), new Literal(2), $query->createNamedParameter(2)));
+ $query->select($query->func()->substring($query->createNamedParameter('foobar'), new Literal(2), $query->createNamedParameter(2)));
$this->assertEquals('oo', $query->execute()->fetchColumn());
}
@@ -67,7 +67,7 @@ class FunctionBuilderTest extends TestCase {
public function testSubstringNoLength() {
$query = $this->connection->getQueryBuilder();
- $query->select($query->fun()->substring($query->createNamedParameter('foobar'), new Literal(2)));
+ $query->select($query->func()->substring($query->createNamedParameter('foobar'), new Literal(2)));
$this->assertEquals('oobar', $query->execute()->fetchColumn());
}