]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 30 Mar 2015 19:18:24 +0000 (21:18 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 30 Mar 2015 19:18:24 +0000 (21:18 +0200)
tests/lib/share/share.php

index cd79abd2056d1527cb4e2150d0c01fc9476e8d6a..523f7b379a0a24e79d3edd76d18524e17c3f2a41 100644 (file)
@@ -1178,6 +1178,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')
@@ -1232,6 +1233,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')
@@ -1284,6 +1286,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')
@@ -1336,6 +1339,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')