mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Replace deprecated assertArraySubset with logic that does the same
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
c4bedf468e
commit
c813a9e4fb
1 changed files with 3 additions and 1 deletions
|
|
@ -197,7 +197,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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue