mantis-matrix-integration – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <?php
2  
3 namespace MatrixPhp\Tests;
4  
5 class TestHelper {
6 const EXAMPLE_SYNC = [
7 "next_batch" => "s72595_4483_1934",
8 "presence" => [
9 "events" => [
10 [
11 "sender" => "@alice:example.com",
12 "type" => "m.presence",
13 "content" => [
14 "presence" => "online",
15 ],
16 ],
17 ],
18 ],
19 "account_data" => [
20 "events" => [
21 [
22 "type" => "org.example.custom.config",
23 "content" => [
24 "custom_config_key" => "custom_config_value",
25 ],
26 ],
27 ],
28 ],
29 "rooms" => [
30 "join" => [
31 "!726s6s6q:example.com" => [
32 "state" => [
33 "events" => [
34 [
35 "sender" => "@alice:example.com",
36 "type" => "m.room.member",
37 "state_key" => "@alice:example.com",
38 "content" => [
39 "membership" => "join",
40 ],
41 "origin_server_ts" => 1417731086795,
42 "event_id" => "$66697273743031:example.com",
43 ],
44 ],
45 ],
46 "timeline" => [
47 "events" => [
48 [
49 "sender" => "@bob:example.com",
50 "type" => "m.room.member",
51 "state_key" => "@bob:example.com",
52 "content" => [
53 "membership" => "join",
54 ],
55 "prev_content" => [
56 "membership" => "invite",
57 ],
58 "origin_server_ts" => 1417731086795,
59 "event_id" => "$7365636s6r6432:example.com",
60 ],
61 [
62 "sender" => "@alice:example.com",
63 "type" => "m.room.message",
64 "age" => 124524,
65 "txn_id" => "1234",
66 "content" => [
67 "body" => "I am a fish",
68 "msgtype" => "m.text",
69 ],
70 "origin_server_ts" => 1417731086797,
71 "event_id" => "$74686972643033:example.com",
72 ],
73 ],
74 "limited" => true,
75 "prev_batch" => "t34-23535_0_0",
76 ],
77 "ephemeral" => [
78 "events" => [
79 [
80 "type" => "m.typing",
81 "content" => [
82 "user_ids" => [
83 "@alice:example.com",
84 ],
85 ],
86 ],
87 ],
88 ],
89 "account_data" => [
90 "events" => [
91 [
92 "type" => "m.tag",
93 "content" => [
94 "tags" => [
95 "work" => [
96 "order" => 1,
97 ],
98 ],
99 ],
100 ],
101 [
102 "type" => "org.example.custom.room.config",
103 "content" => [
104 "custom_config_key" => "custom_config_value",
105 ],
106 ],
107 ],
108 ],
109 ],
110 ],
111 "invite" => [
112 "!696r7674:example.com" => [
113 "invite_state" => [
114 "events" => [
115 [
116 "sender" => "@alice:example.com",
117 "type" => "m.room.name",
118 "state_key" => "",
119 "content" => [
120 "name" => "My Room Name",
121 ],
122 ],
123 [
124 "sender" => "@alice:example.com",
125 "type" => "m.room.member",
126 "state_key" => "@bob:example.com",
127 "content" => [
128 "membership" => "invite",
129 ],
130 ],
131 ],
132 ],
133 ],
134 ],
135 "leave" => [],
136 ],
137 ];
138  
139 const EXAMPLE_PL_EVENT = [
140 'age' => 242352,
141 'content' => [
142 'ban' => 50,
143 'events' => [
144 'm.room.name' => 100,
145 'm.room.power_levels' => 100,
146 ],
147 'events_default' => 0,
148 'invite' => 50,
149 'kick' => 50,
150 'redact' => 50,
151 'state_default' => 50,
152 'users' => [
153 '@example:localhost' => 100,
154 ],
155 'users_default' => 0,
156 ],
157 'event_id' => '$WLGTSEFSEF:localhost',
158 'origin_server_ts' => 1431961217939,
159 'room_id' => '!Cuyf34gef24t:localhost',
160 'sender' => '@example:localhost',
161 'state_key' => '',
162 'type' => 'm.room.power_levels',
163 ];
164  
165 const EXAMPLE_EVENT_RESPONSE = [
166 'event_id' => 'YUwRidLecu',
167 ];
168  
169 const EXAMPLE_KEY_UPLOAD_RESPONSE = [
170 'one_time_key_counts' => [
171 'curve25519' => 10,
172 'signed_curve25519' => 20,
173 ],
174 ];
175  
176 const EXAMPLE_SUCCESS_LOGIN_RESPONSE = [
177 'user_id' => '@example:localhost',
178 'access_token' => 'abc123',
179 'home_server' => 'matrix.org',
180 'device_id' => 'GHTYAJCE',
181 ];
182  
183 const EXAMPLE_PREVIEW_URL = [
184 'matrix:image:size' => 102400,
185 'og:description' => 'This is a really cool blog post from matrix.org',
186 'og:image' => 'mxc://example.com/ascERGshawAWawugaAcauga',
187 'og:image:height' => 48,
188 'og:image:type' => 'image/png',
189 'og:image:width' => 48,
190 'og:title' => 'Matrix Blog Post',
191 ];
192 }