diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 16:33:34 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-09 16:33:34 +0100 |
commit | fdd06ba1f81d07e4597beb0b5b17f44c296b5921 (patch) | |
tree | 5645ae749ab010014adc1f74a3c365d2fd16498a /tests/lib/comments | |
parent | 55a2715eff10e730c8104acc09b122893160cadd (diff) | |
download | nextcloud-server-fdd06ba1f81d07e4597beb0b5b17f44c296b5921.tar.gz nextcloud-server-fdd06ba1f81d07e4597beb0b5b17f44c296b5921.zip |
use getLastInsertId from query builder for convenience
Diffstat (limited to 'tests/lib/comments')
-rw-r--r-- | tests/lib/comments/manager.php | 4 |
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); |