Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Failing unit test for #26
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Sep 28, 2021
1 parent 18a190a commit 28225a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/RevaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function ListFolder($userId) {
error_log(json_encode($resourceInfos));
return new JSONResponse($resourceInfos, 200);
} else {
return new JSONResponse(["error" => "Folder not found"], 400);
return new JSONResponse(["error" => "Folder not found"], 404);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/controller/RevaControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public function testListFolderNotFound(){
);

$result = $controller->ListFolder($this->userId);
$this->assertEquals($result->getData(), []);
$this->assertEquals($result->getStatus(), 404);
}

public function testListFolderOther(){
Expand Down

0 comments on commit 28225a3

Please sign in to comment.