Replace deprecated assertArraySubset with logic that does the same

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-07-23 13:39:13 +02:00
parent a4a086e296
commit 67f22e28da
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View 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());