aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/comments/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/comments/manager.php')
-rw-r--r--tests/lib/comments/manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/comments/manager.php b/tests/lib/comments/manager.php
index d5c415c250a..c8d65c951e3 100644
--- a/tests/lib/comments/manager.php
+++ b/tests/lib/comments/manager.php
@@ -46,7 +46,7 @@ class Test_Comments_Manager extends TestCase
])
->execute();
- return \OC::$server->getDatabaseConnection()->lastInsertId('*PREFIX*comments');
+ return $qb->getLastInsertId();
}
protected function getManager() {
@@ -90,7 +90,7 @@ class Test_Comments_Manager extends TestCase
])
->execute();
- $id = strval(\OC::$server->getDatabaseConnection()->lastInsertId('*PREFIX*comments'));
+ $id = strval($qb->getLastInsertId());
$comment = $manager->get($id);
$this->assertTrue($comment instanceof \OCP\Comments\IComment);