diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-18 09:47:54 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-18 09:50:23 +0100 |
commit | 345e68cafac4db880ef5cf41f714cab9599b1f8a (patch) | |
tree | d0e0478b74ca1a156d987dceec3f51054def0542 /tests | |
parent | 1456e910adc072cc27c06623394d334dd33ad0f6 (diff) | |
download | nextcloud-server-345e68cafac4db880ef5cf41f714cab9599b1f8a.tar.gz nextcloud-server-345e68cafac4db880ef5cf41f714cab9599b1f8a.zip |
Use the query builder for the joblist queries
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/backgroundjob/joblist.php | 13 |
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() { |