diff --git a/plume-models/src/users.rs b/plume-models/src/users.rs index 9b305e54..68b0487a 100644 --- a/plume-models/src/users.rs +++ b/plume-models/src/users.rs @@ -1673,6 +1673,27 @@ pub(crate) mod tests { }); } + #[test] + fn outbox_collection07() { + let conn = db(); + conn.test_transaction::<_, Error, _>(|| { + let (_pages, users, _blogs) = fill_pages(&conn); + let user = &users[0]; + let act = user.outbox_collection07(&conn)?; + + let expected = json!({ + "first": "https://plu.me/@/admin/outbox?page=1", + "last": "https://plu.me/@/admin/outbox?page=5", + "totalItems": 51, + "type": "OrderedCollection", + }); + + assert_json_eq!(to_value(act)?, expected); + + Ok(()) + }); + } + #[test] fn outbox_collection_page() { let conn = db();