diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-06 14:18:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 14:18:57 +0200 |
commit | 6a6af86a1ca14e8b803d7cd8653733842e21d25f (patch) | |
tree | 37af6b38deb4ead471847261355dc9ef72287231 /tests/lib/Authentication/TwoFactorAuth/ManagerTest.php | |
parent | 45a84f362333e8055227ea800bf67a8ea431f3d5 (diff) | |
parent | c609e291bd5dce6976defc0537cdf48a3cc3528b (diff) | |
download | nextcloud-server-6a6af86a1ca14e8b803d7cd8653733842e21d25f.tar.gz nextcloud-server-6a6af86a1ca14e8b803d7cd8653733842e21d25f.zip |
Merge pull request #1242 from nextcloud/bump_phpunit
Bump phpunit
Diffstat (limited to 'tests/lib/Authentication/TwoFactorAuth/ManagerTest.php')
-rw-r--r-- | tests/lib/Authentication/TwoFactorAuth/ManagerTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php b/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php index 83a74f2f253..b3fd28a30ad 100644 --- a/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php +++ b/tests/lib/Authentication/TwoFactorAuth/ManagerTest.php @@ -59,19 +59,19 @@ class ManagerTest extends TestCase { protected function setUp() { parent::setUp(); - $this->user = $this->getMockBuilder('\OCP\IUser')->getMock(); + $this->user = $this->createMock(IUser::class); $this->appManager = $this->getMockBuilder('\OC\App\AppManager') ->disableOriginalConstructor() ->getMock(); - $this->session = $this->getMockBuilder('\OCP\ISession')->getMock(); - $this->config = $this->getMockBuilder('\OCP\IConfig')->getMock(); + $this->session = $this->createMock(ISession::class); + $this->config = $this->createMock(IConfig::class); $this->manager = $this->getMockBuilder('\OC\Authentication\TwoFactorAuth\Manager') ->setConstructorArgs([$this->appManager, $this->session, $this->config]) ->setMethods(['loadTwoFactorApp']) // Do not actually load the apps ->getMock(); - $this->fakeProvider = $this->getMockBuilder('\OCP\Authentication\TwoFactorAuth\IProvider')->getMock(); + $this->fakeProvider = $this->createMock(IProvider::class); $this->fakeProvider->expects($this->any()) ->method('getId') ->will($this->returnValue('email')); @@ -268,7 +268,7 @@ class ManagerTest extends TestCase { } public function testNeedsSecondFactor() { - $user = $this->getMock('\OCP\IUser'); + $user = $this->createMock(IUser::class); $this->session->expects($this->once()) ->method('exists') ->with('two_factor_auth_uid') |