aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php')
-rw-r--r--apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php b/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
index d92984bbce9..4bf533194b4 100644
--- a/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
+++ b/apps/files_trashbin/tests/BackgroundJob/ExpireTrashTest.php
@@ -24,15 +24,17 @@
namespace OCA\Files_Trashbin\Tests\BackgroundJob;
use \OCA\Files_Trashbin\BackgroundJob\ExpireTrash;
+use OCP\BackgroundJob\IJobList;
+use OCP\IUserManager;
class ExpireTrashTest extends \Test\TestCase {
public function testConstructAndRun() {
$backgroundJob = new ExpireTrash(
- $this->getMock('OCP\IUserManager'),
+ $this->createMock(IUserManager::class),
$this->getMockBuilder('OCA\Files_Trashbin\Expiration')->disableOriginalConstructor()->getMock()
);
- $jobList = $this->getMock('\OCP\BackgroundJob\IJobList');
+ $jobList = $this->createMock(IJobList::class);
/** @var \OC\BackgroundJob\JobList $jobList */
$backgroundJob->execute($jobList);