diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 20:56:05 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:52 +0200 |
commit | c4ef825cebbbb04cee87b852f6ae5fb293e0a8df (patch) | |
tree | 20f77d75a6e79efa860e03aad396b876690af387 /tests/lib/BackgroundJob | |
parent | 9404c04512332f5037dc4ccc4b5c43b5ba1a66e4 (diff) | |
download | nextcloud-server-c4ef825cebbbb04cee87b852f6ae5fb293e0a8df.tar.gz nextcloud-server-c4ef825cebbbb04cee87b852f6ae5fb293e0a8df.zip |
Fix getMock JobListTest
Diffstat (limited to 'tests/lib/BackgroundJob')
-rw-r--r-- | tests/lib/BackgroundJob/JobListTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/BackgroundJob/JobListTest.php b/tests/lib/BackgroundJob/JobListTest.php index b8dcb735a26..78299e81546 100644 --- a/tests/lib/BackgroundJob/JobListTest.php +++ b/tests/lib/BackgroundJob/JobListTest.php @@ -8,8 +8,10 @@ namespace Test\BackgroundJob; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJob; use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\IConfig; use Test\TestCase; /** @@ -36,8 +38,8 @@ class JobListTest extends TestCase { $this->connection = \OC::$server->getDatabaseConnection(); $this->clearJobsList(); - $this->config = $this->getMock('OCP\IConfig'); - $this->timeFactory = $this->getMock('OCP\AppFramework\Utility\ITimeFactory'); + $this->config = $this->createMock(IConfig::class); + $this->timeFactory = $this->createMock(ITimeFactory::class); $this->instance = new \OC\BackgroundJob\JobList( $this->connection, $this->config, |