mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 07:34:55 +00:00
Test for hot links
This commit is contained in:
parent
e8f4732b1f
commit
98fc3f4940
2 changed files with 9 additions and 1 deletions
|
@ -136,7 +136,7 @@ class API extends \JKingWeb\Arsse\REST\AbstractHandler {
|
||||||
}
|
}
|
||||||
if ($G['links']) {
|
if ($G['links']) {
|
||||||
// TODO: implement hot links
|
// TODO: implement hot links
|
||||||
$out['inks'] = [];
|
$out['links'] = [];
|
||||||
}
|
}
|
||||||
if ($G['unread_item_ids']) {
|
if ($G['unread_item_ids']) {
|
||||||
$out['unread_item_ids'] = $this->getItemIds((new Context)->unread(true));
|
$out['unread_item_ids'] = $this->getItemIds((new Context)->unread(true));
|
||||||
|
|
|
@ -366,4 +366,12 @@ class TestAPI extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
]);
|
]);
|
||||||
$this->assertMessage($exp, $this->req("api&unread_item_ids"));
|
$this->assertMessage($exp, $this->req("api&unread_item_ids"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testListHotLinks() {
|
||||||
|
// hot links are not actually implemented, so an empty array should be all we get
|
||||||
|
$exp = new JsonResponse([
|
||||||
|
'links' => []
|
||||||
|
]);
|
||||||
|
$this->assertMessage($exp, $this->req("api&links"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue