Skip to content

Commit

Permalink
Fix test by being consistent between filename and data timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Dec 5, 2023
1 parent 72cf755 commit 5776790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ACL/ACLManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testGetACLPermissionsForPathInTrashbin() {
'__groupfolders/1/subfolder' => [
new Rule($this->dummyMapping, 10, Constants::PERMISSION_UPDATE, Constants::PERMISSION_UPDATE) // add write
],
'__groupfolders/trash/1/subfolder2.d1700748275' => [
'__groupfolders/trash/1/subfolder2.d1700752274' => [
new Rule($this->dummyMapping, 10, Constants::PERMISSION_SHARE, Constants::PERMISSION_SHARE) // add share
]
];
Expand All @@ -125,6 +125,6 @@ public function testGetACLPermissionsForPathInTrashbin() {
'original_location' => 'subfolder/subfolder2',
'folder_id' => '1',
]);
$this->assertEquals(Constants::PERMISSION_ALL, $this->aclManager->getACLPermissionsForPath('__groupfolders/trash/1/subfolder2.d1700748275/coucou.md'));
$this->assertEquals(Constants::PERMISSION_ALL, $this->aclManager->getACLPermissionsForPath('__groupfolders/trash/1/subfolder2.d1700752274/coucou.md'));
}
}

0 comments on commit 5776790

Please sign in to comment.