You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/includes/collection/class-test-outbox.php
+52-4Lines changed: 52 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@
7
7
8
8
namespaceActivitypub\Tests\Collection;
9
9
10
+
useActivitypub\Collection\Outbox;
11
+
10
12
/**
11
13
* Test class for Outbox collection.
12
14
*
@@ -64,7 +66,7 @@ public function activity_object_provider() {
64
66
),
65
67
'Create',
66
68
1,
67
-
'{"@context":["https:\/\/www.w3.org\/ns\/activitystreams",{"Hashtag":"as:Hashtag","sensitive":"as:sensitive"}],"id":"https:\/\/example.com\/' . self::$user_id . '","type":"Note","content":"\u003Cp\u003EThis is a note\u003C\/p\u003E","contentMap":{"en":"\u003Cp\u003EThis is a note\u003C\/p\u003E"},"tag":[],"to":["https:\/\/www.w3.org\/ns\/activitystreams#Public"],"cc":[],"mediaType":"text\/html","sensitive":false}',
69
+
'{"@context":["https:\/\/www.w3.org\/ns\/activitystreams",{"Hashtag":"as:Hashtag","sensitive":"as:sensitive"}],"id":"https:\/\/example.com\/' . self::$user_id . '","type":"Note","content":"\u003Cp\u003EThis is a note\u003C\/p\u003E","contentMap":{"en":"\u003Cp\u003EThis is a note\u003C\/p\u003E"},"to":["https:\/\/www.w3.org\/ns\/activitystreams#Public"],"mediaType":"text\/html","sensitive":false}',
68
70
),
69
71
array(
70
72
array(
@@ -75,7 +77,7 @@ public function activity_object_provider() {
75
77
),
76
78
'Create',
77
79
2,
78
-
'{"@context":["https:\/\/www.w3.org\/ns\/activitystreams",{"Hashtag":"as:Hashtag","sensitive":"as:sensitive"}],"id":"https:\/\/example.com\/2","type":"Note","content":"\u003Cp\u003EThis is another note\u003C\/p\u003E","contentMap":{"en":"\u003Cp\u003EThis is another note\u003C\/p\u003E"},"tag":[],"to":["https:\/\/www.w3.org\/ns\/activitystreams#Public"],"cc":[],"mediaType":"text\/html","sensitive":false}',
80
+
'{"@context":["https:\/\/www.w3.org\/ns\/activitystreams",{"Hashtag":"as:Hashtag","sensitive":"as:sensitive"}],"id":"https:\/\/example.com\/2","type":"Note","content":"\u003Cp\u003EThis is another note\u003C\/p\u003E","contentMap":{"en":"\u003Cp\u003EThis is another note\u003C\/p\u003E"},"to":["https:\/\/www.w3.org\/ns\/activitystreams#Public"],"mediaType":"text\/html","sensitive":false}',
79
81
),
80
82
);
81
83
}
@@ -192,13 +194,59 @@ public function test_delete_invalidates_all_activities() {
192
194
/**
193
195
* Helper method to create a dummy activity object for testing.
194
196
*
195
-
* @return \Activitypub\Activity\Base_Object
197
+
* @return \Activitypub\Activity\Activity
196
198
*/
197
199
privatefunctionget_dummy_activity_object() {
198
-
$object = new \Activitypub\Activity\Base_Object();
0 commit comments