[Pkg-owncloud-commits] [owncloud] 115/129: Use the method

David Prévot taffit at moszumanska.debian.org
Thu Nov 5 01:04:29 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

commit 01816a2ba2af6b9edba587f59951a5c08723293c
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Tue Oct 20 10:11:25 2015 +0200

    Use the method
---
 tests/lib/repair/repairinvalidsharestest.php | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/tests/lib/repair/repairinvalidsharestest.php b/tests/lib/repair/repairinvalidsharestest.php
index 7aaf273..005a2db 100644
--- a/tests/lib/repair/repairinvalidsharestest.php
+++ b/tests/lib/repair/repairinvalidsharestest.php
@@ -77,13 +77,7 @@ class RepairInvalidSharesTest extends TestCase {
 			])
 			->execute();
 
-		// select because lastInsertId does not work with OCI
-		$results = $this->connection->getQueryBuilder()
-			->select('id')
-			->from('share')
-			->execute()
-			->fetchAll();
-		$bogusShareId = $results[0]['id'];
+		$bogusShareId = $this->getLastShareId();
 
 		// link share with expiration date
 		$qb = $this->connection->getQueryBuilder();

-- 
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