diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-14 15:45:45 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-14 15:45:45 +0200 |
commit | 3b948f76945ac6ff148e88a04293933576d090b9 (patch) | |
tree | ee5af0464fa358e75602a88eeedd5da869eea2a7 /apps/updatenotification/tests/ResetTokenBackgroundJobTest.php | |
parent | 241fc286c78917137776d44bdf2d426d6f26f52e (diff) | |
download | nextcloud-server-3b948f76945ac6ff148e88a04293933576d090b9.tar.gz nextcloud-server-3b948f76945ac6ff148e88a04293933576d090b9.zip |
Fix deprecated getMock warning
Diffstat (limited to 'apps/updatenotification/tests/ResetTokenBackgroundJobTest.php')
-rw-r--r-- | apps/updatenotification/tests/ResetTokenBackgroundJobTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/updatenotification/tests/ResetTokenBackgroundJobTest.php b/apps/updatenotification/tests/ResetTokenBackgroundJobTest.php index 71b72a40021..a52d46040cd 100644 --- a/apps/updatenotification/tests/ResetTokenBackgroundJobTest.php +++ b/apps/updatenotification/tests/ResetTokenBackgroundJobTest.php @@ -37,8 +37,8 @@ class ResetTokenBackgroundJobTest extends TestCase { public function setUp() { parent::setUp(); - $this->config = $this->getMock('\\OCP\\IConfig'); - $this->timeFactory = $this->getMock('\\OCP\\AppFramework\\Utility\\ITimeFactory'); + $this->config = $this->getMockBuilder('\\OCP\\IConfig')->getMock(); + $this->timeFactory = $this->getMockBuilder('\\OCP\\AppFramework\\Utility\\ITimeFactory')->getMock(); $this->resetTokenBackgroundJob = new ResetTokenBackgroundJob($this->config, $this->timeFactory); } |