test: Don't test order of applicable mount points when we don't sort

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/48210/head
Joas Schilling 4 months ago
parent ebee539902
commit b95a1653e6
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
  1. 2
      apps/files_external/tests/Service/DBConfigServiceTest.php
  2. 2
      apps/files_external/tests/Service/GlobalStoragesServiceTest.php

@ -70,7 +70,7 @@ class DBConfigServiceTest extends TestCase {
$this->dbConfig->addApplicable($id, DBConfigService::APPLICABLE_TYPE_GLOBAL, null);
$mount = $this->dbConfig->getMountById($id);
$this->assertEquals([
$this->assertEqualsCanonicalizing([
['type' => DBConfigService::APPLICABLE_TYPE_USER, 'value' => 'test', 'mount_id' => $id],
['type' => DBConfigService::APPLICABLE_TYPE_GROUP, 'value' => 'bar', 'mount_id' => $id],
['type' => DBConfigService::APPLICABLE_TYPE_GLOBAL, 'value' => null, 'mount_id' => $id]

@ -168,7 +168,7 @@ class GlobalStoragesServiceTest extends StoragesServiceTestCase {
$this->assertEquals($updatedStorage->getMountPoint(), $newStorage->getMountPoint());
$this->assertEquals($updatedStorage->getBackendOptions()['password'], $newStorage->getBackendOptions()['password']);
$this->assertEquals($updatedStorage->getApplicableUsers(), $newStorage->getApplicableUsers());
$this->assertEqualsCanonicalizing($updatedStorage->getApplicableUsers(), $newStorage->getApplicableUsers());
$this->assertEquals($updatedStorage->getApplicableGroups(), $newStorage->getApplicableGroups());
$this->assertEquals($updatedStorage->getPriority(), $newStorage->getPriority());
$this->assertEquals(0, $newStorage->getStatus());

Loading…
Cancel
Save