diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-07 22:08:21 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-21 15:25:47 +0200 |
commit | f77e5f411dda91a7c4fc70c090825a036b7b1135 (patch) | |
tree | 6cc6cc88d7f3bb3ff137e2da5130e933ca1ab840 /tests/lib/share | |
parent | 516f7e8299c309ed909259c90c23cb0ce6a8e4f7 (diff) | |
download | nextcloud-server-f77e5f411dda91a7c4fc70c090825a036b7b1135.tar.gz nextcloud-server-f77e5f411dda91a7c4fc70c090825a036b7b1135.zip |
Fix existing usages by removing the quotes
Diffstat (limited to 'tests/lib/share')
-rw-r--r-- | tests/lib/share/share.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lib/share/share.php b/tests/lib/share/share.php index 816070afd8b..52511810efa 100644 --- a/tests/lib/share/share.php +++ b/tests/lib/share/share.php @@ -1287,12 +1287,12 @@ class Test_Share extends \Test\TestCase { // Find the share ID in the db $qb = $connection->getQueryBuilder(); - $qb->select('`id`') - ->from('`*PREFIX*share`') - ->where('`item_type` = :type') - ->andWhere('`item_source` = :source') - ->andWhere('`uid_owner` = :owner') - ->andWhere('`share_type` = :share_type') + $qb->select('id') + ->from('*PREFIX*share') + ->where($qb->expr()->eq('item_type', $qb->createParameter('type'))) + ->andWhere($qb->expr()->eq('item_source', $qb->createParameter('source'))) + ->andWhere($qb->expr()->eq('uid_owner', $qb->createParameter('owner'))) + ->andWhere($qb->expr()->eq('share_type', $qb->createParameter('share_type'))) ->setParameter('type', 'test') ->setParameter('source', 'test.txt') ->setParameter('owner', $this->user1) @@ -1308,9 +1308,9 @@ class Test_Share extends \Test\TestCase { // Fetch the hash from the database $qb = $connection->getQueryBuilder(); - $qb->select('`share_with`') - ->from('`*PREFIX*share`') - ->where('`id` = :id') + $qb->select('share_with') + ->from('*PREFIX*share') + ->where($qb->expr()->eq('id', $qb->createParameter('id'))) ->setParameter('id', $id); $hash = $qb->execute()->fetch()['share_with']; |