summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-23 13:39:13 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-23 17:11:29 +0200
commit1339ea15e26a3db944dcc2255b35d5fd1b0c7549 (patch)
tree149da327c30c524df0fd3baa57fdaafaad60d65b /apps/federatedfilesharing
parent7e6c0ec2845a0133dd16248b40ea2faa1df7f9c9 (diff)
downloadnextcloud-server-1339ea15e26a3db944dcc2255b35d5fd1b0c7549.tar.gz
nextcloud-server-1339ea15e26a3db944dcc2255b35d5fd1b0c7549.zip
Replace deprecated assertArraySubset with logic that does the same
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/tests/FederatedShareProviderTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
index 2b04428848a..e3e13f05867 100644
--- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
+++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
@@ -198,7 +198,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
'accepted' => 0,
'token' => 'token',
];
- $this->assertArraySubset($expected, $data);
+ foreach (array_keys($expected) as $key) {
+ $this->assertEquals($expected[$key], $data[$key], "Assert that value for key '$key' is the same");
+ }
$this->assertEquals($data['id'], $share->getId());
$this->assertEquals(IShare::TYPE_REMOTE, $share->getShareType());