Replace deprecated assertArraySubset with logic that does the same
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
7e6c0ec284
commit
1339ea15e2
|
@ -198,7 +198,9 @@ class FederatedShareProviderTest extends \Test\TestCase {
|
||||||
'accepted' => 0,
|
'accepted' => 0,
|
||||||
'token' => 'token',
|
'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($data['id'], $share->getId());
|
||||||
$this->assertEquals(IShare::TYPE_REMOTE, $share->getShareType());
|
$this->assertEquals(IShare::TYPE_REMOTE, $share->getShareType());
|
||||||
|
|
Loading…
Reference in New Issue