add test to check move activities using file-id

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
prashant-gurung899
2024-11-13 11:28:24 +05:45
committed by pradip
parent 3998a9a4d9
commit 84019acc3a
2 changed files with 809 additions and 3 deletions
+2 -2
View File
@@ -2065,9 +2065,9 @@ class SpacesContext implements Context {
$sourceFile = \explode("/", $sourceFile);
$sourceFile = \end($sourceFile);
$destinationFile = \trim($destinationFile, "/");
if ($actionType === 'copied' || $actionType === 'moved') {
if ($actionType === 'copied') {
$fileDestination = $this->escapePath($destinationFile) . '/' . $this->escapePath($sourceFile);
} else {
} elseif ($actionType === 'renamed' || $actionType === 'moved') {
$fileDestination = $destinationFile;
}