summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/SessionTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-11 21:32:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-12 13:55:19 +0200
commit234b510652d117bb3ef9ef3b6315db3a2c2eb91b (patch)
tree880cec2bf4fe4846eff9fa5aa68d2671fb0495be /apps/encryption/tests/SessionTest.php
parent138f47a1b980aaceb116b256b8ccf14f523e7e67 (diff)
downloadnextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.tar.gz
nextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.zip
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/encryption/tests/SessionTest.php')
-rw-r--r--apps/encryption/tests/SessionTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/encryption/tests/SessionTest.php b/apps/encryption/tests/SessionTest.php
index 19425cc8531..079f906d1d6 100644
--- a/apps/encryption/tests/SessionTest.php
+++ b/apps/encryption/tests/SessionTest.php
@@ -37,10 +37,10 @@ class SessionTest extends TestCase {
* @var Session
*/
private $instance;
- /** @var \OCP\ISession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\ISession|\PHPUnit\Framework\MockObject\MockObject */
private $sessionMock;
-
+
public function testThatGetPrivateKeyThrowsExceptionWhenNotSet() {
$this->expectException(\OCA\Encryption\Exceptions\PrivateKeyMissingException::class);
$this->expectExceptionMessage('Private Key missing for user: please try to log-out and log-in again');
@@ -119,7 +119,7 @@ class SessionTest extends TestCase {
$this->instance->getDecryptAllKey();
}
-
+
public function testSetAndGetStatusWillSetAndReturn() {
// Check if get status will return 0 if it has not been set before
$this->assertEquals(0, $this->instance->getStatus());
@@ -141,7 +141,7 @@ class SessionTest extends TestCase {
* @param bool $expected
*/
public function testIsReady($status, $expected) {
- /** @var Session | \PHPUnit_Framework_MockObject_MockObject $instance */
+ /** @var Session | \PHPUnit\Framework\MockObject\MockObject $instance */
$instance = $this->getMockBuilder(Session::class)
->setConstructorArgs([$this->sessionMock])
->setMethods(['getStatus'])->getMock();
@@ -186,7 +186,7 @@ class SessionTest extends TestCase {
return null;
}
-
+
public function testClearWillRemoveValues() {
$this->instance->setPrivateKey('privateKey');
$this->instance->setStatus('initStatus');
@@ -196,7 +196,7 @@ class SessionTest extends TestCase {
$this->assertEmpty(self::$tempStorage);
}
-
+
protected function setUp(): void {
parent::setUp();
$this->sessionMock = $this->createMock(ISession::class);