summaryrefslogtreecommitdiffstats
path: root/tests/lib/repair
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-07 10:22:30 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-07 14:54:55 +0100
commitfddece9552a4b194cdce8c3916e33fa8597c9008 (patch)
treeac7ebf668c4dd677e92922e35ff7f0be189935b4 /tests/lib/repair
parent0a41cfefe38e8bf352895f2b87dd9a04fd627094 (diff)
downloadnextcloud-server-fddece9552a4b194cdce8c3916e33fa8597c9008.tar.gz
nextcloud-server-fddece9552a4b194cdce8c3916e33fa8597c9008.zip
Remove OC_DB::insertid
Diffstat (limited to 'tests/lib/repair')
-rw-r--r--tests/lib/repair/repairlegacystorage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/repair/repairlegacystorage.php b/tests/lib/repair/repairlegacystorage.php
index 44afd6125ab..3ae6578f7ec 100644
--- a/tests/lib/repair/repairlegacystorage.php
+++ b/tests/lib/repair/repairlegacystorage.php
@@ -99,7 +99,7 @@ class RepairLegacyStorages extends TestCase {
$numRows = $this->connection->executeUpdate($sql, array($storageId));
$this->assertEquals(1, $numRows);
- return \OC_DB::insertid('*PREFIX*storages');
+ return \OC::$server->getDatabaseConnection()->lastInsertId('*PREFIX*storages');
}
/**