]> source.dussan.org Git - nextcloud-server.git/commitdiff
Replace deprecated assertArraySubset with logic that does the same
authorMorris Jobke <hey@morrisjobke.de>
Thu, 23 Jul 2020 11:39:13 +0000 (13:39 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 30 Jul 2020 11:18:24 +0000 (13:18 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/federatedfilesharing/tests/FederatedShareProviderTest.php

index c8acdd3df53d73f5045218031c70df0f64de980f..379f7b14c3cddd9fb901afb9f1db5a08eccd70c8 100644 (file)
@@ -196,7 +196,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(\OCP\Share::SHARE_TYPE_REMOTE, $share->getShareType());