Skip to content
Snippets Groups Projects
Unverified Commit c4ef825c authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix getMock JobListTest

parent 9404c045
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment