aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-18 13:44:02 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 13:44:02 +0100
commit22d1b1285e970447f532919368ebffeeb8c2ebf7 (patch)
tree7a9e165d02480f18a101eca3bc33b8113182918b /tests
parentb4a896c00ddfbd7c3965a4d9c9b723b6fe915103 (diff)
parent0f836cfe9ea0e8fb1267f55ed2b65747c7ec318c (diff)
downloadnextcloud-server-22d1b1285e970447f532919368ebffeeb8c2ebf7.tar.gz
nextcloud-server-22d1b1285e970447f532919368ebffeeb8c2ebf7.zip
Merge pull request #21277 from owncloud/querybuild-joblist
Use the query builder for the joblist queries
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/backgroundjob/joblist.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/lib/backgroundjob/joblist.php b/tests/lib/backgroundjob/joblist.php
index 73b3255c079..c0796d8253a 100644
--- a/tests/lib/backgroundjob/joblist.php
+++ b/tests/lib/backgroundjob/joblist.php
@@ -15,26 +15,21 @@ use Test\TestCase;
* Class JobList
*
* @group DB
- *
* @package Test\BackgroundJob
*/
class JobList extends TestCase {
- /**
- * @var \OC\BackgroundJob\JobList
- */
+ /** @var \OC\BackgroundJob\JobList */
protected $instance;
- /**
- * @var \OCP\IConfig | \PHPUnit_Framework_MockObject_MockObject $config
- */
+ /** @var \OCP\IConfig|\PHPUnit_Framework_MockObject_MockObject */
protected $config;
protected function setUp() {
parent::setUp();
- $conn = \OC::$server->getDatabaseConnection();
+ $connection = \OC::$server->getDatabaseConnection();
$this->config = $this->getMock('\OCP\IConfig');
- $this->instance = new \OC\BackgroundJob\JobList($conn, $this->config);
+ $this->instance = new \OC\BackgroundJob\JobList($connection, $this->config);
}
protected function getAllSorted() {