[Pkg-owncloud-commits] [owncloud] 15/62: Fix unit test

David Prévot taffit at moszumanska.debian.org
Tue Jun 23 23:39:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.5beta
in repository owncloud.

commit 7213be29c9010ecbd5e8f770e038abb07ad31020
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date:   Mon Mar 30 21:18:24 2015 +0200

    Fix unit test
---
 tests/lib/share/share.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php
index 5c0463c..314fd59 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')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list