summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:20:08 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:38 +0200
commite1096c964d4f509f2bcee55d1f6bd0a36517a3d9 (patch)
tree0bde8aea1a78dc131e3664c7682092cd6256f2e7
parentdc60f4c441000b51ea8cba3b1ffca7f458bf52d5 (diff)
downloadnextcloud-server-e1096c964d4f509f2bcee55d1f6bd0a36517a3d9.tar.gz
nextcloud-server-e1096c964d4f509f2bcee55d1f6bd0a36517a3d9.zip
Fix getMock Security
-rw-r--r--tests/lib/Security/Bruteforce/ThrottlerTest.php6
-rw-r--r--tests/lib/Security/CredentialsManagerTest.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Security/Bruteforce/ThrottlerTest.php b/tests/lib/Security/Bruteforce/ThrottlerTest.php
index 9b7a47ceec8..604aecd3a65 100644
--- a/tests/lib/Security/Bruteforce/ThrottlerTest.php
+++ b/tests/lib/Security/Bruteforce/ThrottlerTest.php
@@ -44,9 +44,9 @@ class ThrottlerTest extends TestCase {
private $config;
public function setUp() {
- $this->dbConnection = $this->getMock('\OCP\IDBConnection');
- $this->logger = $this->getMock('\OCP\ILogger');
- $this->config = $this->getMock('\OCP\IConfig');
+ $this->dbConnection = $this->createMock(IDBConnection::class);
+ $this->logger = $this->createMock(ILogger::class);
+ $this->config = $this->createMock(IConfig::class);
$this->throttler = new Throttler(
$this->dbConnection,
diff --git a/tests/lib/Security/CredentialsManagerTest.php b/tests/lib/Security/CredentialsManagerTest.php
index 7eb4e4d7b1a..cffcc02817c 100644
--- a/tests/lib/Security/CredentialsManagerTest.php
+++ b/tests/lib/Security/CredentialsManagerTest.php
@@ -38,7 +38,7 @@ class CredentialsManagerTest extends \Test\TestCase {
protected function setUp() {
parent::setUp();
- $this->crypto = $this->getMock('\OCP\Security\ICrypto');
+ $this->crypto = $this->createMock(ICrypto::class);
$this->dbConnection = $this->getMockBuilder('\OC\DB\Connection')
->disableOriginalConstructor()
->getMock();