mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Correct error output of getCategoryFeeds
This commit is contained in:
parent
a34edcb0d1
commit
cca4b205e4
2 changed files with 2 additions and 2 deletions
|
@ -689,7 +689,7 @@ class V1 extends \JKingWeb\Arsse\REST\AbstractHandler {
|
|||
$subs = Arsse::$db->subscriptionList(Arsse::$user->id, $folder, $recursive)->getAll();
|
||||
} catch (ExceptionInput $e) {
|
||||
// the folder does not exist
|
||||
return new EmptyResponse(404);
|
||||
return new ErrorResponse("404", 404);
|
||||
}
|
||||
// compile the list of folders; the feed list includes folder names
|
||||
// NOTE: We compile the full list of folders in case someone has manually selected a non-top folder
|
||||
|
|
|
@ -575,7 +575,7 @@ class TestV1 extends \JKingWeb\Arsse\Test\AbstractTest {
|
|||
|
||||
public function testListFeedsOfAMissingCategory(): void {
|
||||
\Phake::when(Arsse::$db)->subscriptionList->thenThrow(new ExceptionInput("idMissing"));
|
||||
$exp = new EmptyResponse(404);
|
||||
$exp = new ErrorResponse("404", 404);
|
||||
$this->assertMessage($exp, $this->req("GET", "/categories/2112/feeds"));
|
||||
\Phake::verify(Arsse::$db)->subscriptionList(Arsse::$user->id, 2111, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue