summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-03-30 21:18:24 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-06-03 21:30:22 +0200
commit7213be29c9010ecbd5e8f770e038abb07ad31020 (patch)
tree53408ad845c1c00a6cbcc30dd068798b00db8a52
parent0b38c138914db303902445141c9b3f5e4f532b29 (diff)
downloadnextcloud-server-7213be29c9010ecbd5e8f770e038abb07ad31020.tar.gz
nextcloud-server-7213be29c9010ecbd5e8f770e038abb07ad31020.zip
Fix unit test
-rw-r--r--tests/lib/share/share.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 5c0463c979e..314fd59ec70 100644
--- a/tests/lib/share/share.php
+++ b/tests/lib/share/share.php
@@ -1230,6 +1230,7 @@ class Test_Share extends \Test\TestCase {
$qb->method('andWhere')->will($this->returnSelf());
$qb->method('select')->will($this->returnSelf());
$qb->method('from')->will($this->returnSelf());
+ $qb->method('setParameter')->will($this->returnSelf());
$qb->method('expr')->willReturn($ex);
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
@@ -1284,6 +1285,7 @@ class Test_Share extends \Test\TestCase {
$qb->method('set')->will($this->returnSelf());
$qb->method('where')->will($this->returnSelf());
$qb->method('andWhere')->will($this->returnSelf());
+ $qb->method('setParameter')->will($this->returnSelf());
$qb->method('expr')->willReturn($ex);
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
@@ -1336,6 +1338,7 @@ class Test_Share extends \Test\TestCase {
$qb->method('andWhere')->will($this->returnSelf());
$qb->method('select')->will($this->returnSelf());
$qb->method('from')->will($this->returnSelf());
+ $qb->method('setParameter')->will($this->returnSelf());
$qb->method('expr')->willReturn($ex);
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
@@ -1388,6 +1391,7 @@ class Test_Share extends \Test\TestCase {
$qb->method('andWhere')->will($this->returnSelf());
$qb->method('select')->will($this->returnSelf());
$qb->method('from')->will($this->returnSelf());
+ $qb->method('setParameter')->will($this->returnSelf());
$qb->method('expr')->willReturn($ex);
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')