+
+ /**
+ * Test render_linklist hook while logged out: no change.
+ */
+ public function testWallabagLinklistLoggedOut(): void
+ {
+ $conf = new ConfigManager('');
+ $str = 'http://randomstr.com/test';
+ $data = [
+ 'title' => $str,
+ 'links' => [
+ [
+ 'url' => $str,
+ ]
+ ],
+ '_LOGGEDIN_' => false,
+ ];
+
+ $result = hook_wallabag_render_linklist($data, $conf);
+
+ static::assertSame($data, $result);
+ }