diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-20 10:11:25 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-10-29 09:26:26 +0100 |
commit | 6043f0afdb88caf667cc7ace2c5615735de71ac3 (patch) | |
tree | 060ede2c7060c7499c2fb08ac45ec9c37c3ef969 /tests | |
parent | e5a7e3124ae4054f5fdf99e5dd5cca373b4d83ad (diff) | |
download | nextcloud-server-6043f0afdb88caf667cc7ace2c5615735de71ac3.tar.gz nextcloud-server-6043f0afdb88caf667cc7ace2c5615735de71ac3.zip |
Use the method
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/repair/repairinvalidsharestest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/lib/repair/repairinvalidsharestest.php b/tests/lib/repair/repairinvalidsharestest.php index 7aaf273e3cc..005a2db2344 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(); |