aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-02-18 14:05:54 +0100
committerGitHub <noreply@github.com>2021-02-18 14:05:54 +0100
commit5026d2cca10fa65be68367002eff147d7dc71077 (patch)
treed4d7119b0b8f547aebcc857c5297fc52ccc5a4b3 /tests/Core
parentbbb39cf3deb350738a28b5f5bdf40572f1406897 (diff)
parenteb502c02ff7693bb36318d857985f79e7bac370c (diff)
downloadnextcloud-server-5026d2cca10fa65be68367002eff147d7dc71077.tar.gz
nextcloud-server-5026d2cca10fa65be68367002eff147d7dc71077.zip
Merge pull request #25086 from nextcloud/dependabot/composer/nextcloud/coding-standard-0.5.0
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/OCSControllerTest.php4
-rw-r--r--tests/Core/Service/LoginFlowV2ServiceUnitTest.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/Core/Controller/OCSControllerTest.php b/tests/Core/Controller/OCSControllerTest.php
index cb1b9379a90..61ed4a50d62 100644
--- a/tests/Core/Controller/OCSControllerTest.php
+++ b/tests/Core/Controller/OCSControllerTest.php
@@ -88,7 +88,7 @@ class OCSControllerTest extends TestCase {
$this->userSession->expects($this->once())
->method('isLoggedIn')
->willReturn(true);
- list($major, $minor, $micro) = \OCP\Util::getVersion();
+ [$major, $minor, $micro] = \OCP\Util::getVersion();
$result = [];
$result['version'] = [
@@ -121,7 +121,7 @@ class OCSControllerTest extends TestCase {
$this->userSession->expects($this->once())
->method('isLoggedIn')
->willReturn(false);
- list($major, $minor, $micro) = \OCP\Util::getVersion();
+ [$major, $minor, $micro] = \OCP\Util::getVersion();
$result = [];
$result['version'] = [
diff --git a/tests/Core/Service/LoginFlowV2ServiceUnitTest.php b/tests/Core/Service/LoginFlowV2ServiceUnitTest.php
index 233960ea97a..18b2f370fb3 100644
--- a/tests/Core/Service/LoginFlowV2ServiceUnitTest.php
+++ b/tests/Core/Service/LoginFlowV2ServiceUnitTest.php
@@ -181,7 +181,7 @@ class LoginFlowV2ServiceUnitTest extends TestCase {
}
public function testPollRemoveDataFromDb() {
- list($encrypted, $privateKey) = $this->getOpenSSLEncryptedPublicAndPrivateKey('test_pass');
+ [$encrypted, $privateKey] = $this->getOpenSSLEncryptedPublicAndPrivateKey('test_pass');
$this->crypto->expects($this->once())
->method('decrypt')
@@ -295,7 +295,7 @@ class LoginFlowV2ServiceUnitTest extends TestCase {
*/
public function testFlowDone() {
- list(,, $publicKey) = $this->getOpenSSLEncryptedPublicAndPrivateKey('test_pass');
+ [,, $publicKey] = $this->getOpenSSLEncryptedPublicAndPrivateKey('test_pass');
$loginFlowV2 = new LoginFlowV2();
$loginFlowV2->setPublicKey($publicKey);