Skip to content

Commit 0fb7d50

Browse files
committed
add statement fixture with all properties defined
1 parent a0fd43e commit 0fb7d50

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CHANGELOG
22
=========
33

4+
* Added a `Statement` fixture defining all properties of a statement.
5+
46
* Added fixtures for statement attachments.
57

68
* Added fixtures for activity definition extensions.

data/Statement/all_properties.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"id": "12345678-1234-5678-8234-567812345678",
3+
"actor": {
4+
"mbox": "mailto:[email protected]",
5+
"objectType": "Agent"
6+
},
7+
"verb": {
8+
"id": "http://tincanapi.com/conformancetest/verbid",
9+
"display": {
10+
"en-US": "test"
11+
}
12+
},
13+
"object": {
14+
"id": "http://tincanapi.com/conformancetest/activityid",
15+
"objectType": "Activity"
16+
},
17+
"result": {
18+
"score": {
19+
"scaled": 1
20+
},
21+
"success": true,
22+
"completion": true,
23+
"response": "test",
24+
"duration": "PT2H",
25+
"extensions": {
26+
"http://id.tincanapi.com/extension/topic": "Conformance Testing"
27+
}
28+
},
29+
"authority": {
30+
"account": {
31+
"name": "test",
32+
"homePage": "https://tincanapi.com"
33+
},
34+
"objectType": "Agent"
35+
},
36+
"timestamp": "2013-05-18T05:32:34+00:00",
37+
"stored": "2014-07-23T12:34:02-05:00",
38+
"context": {
39+
"registration": "16fd2706-8baf-433b-82eb-8c7fada847da",
40+
"instructor": {
41+
"mbox": "mailto:[email protected]",
42+
"objectType": "Agent"
43+
},
44+
"team": {
45+
"objectType": "Group",
46+
"mbox": "mailto:[email protected]"
47+
},
48+
"contextActivities": {
49+
"category": [
50+
{
51+
"id": "http://tincanapi.com/conformancetest/activityid",
52+
"objectType": "Activity"
53+
}
54+
],
55+
"parent": [
56+
{
57+
"id": "http://tincanapi.com/conformancetest/activityid",
58+
"objectType": "Activity"
59+
}
60+
],
61+
"grouping": [
62+
{
63+
"id": "http://tincanapi.com/conformancetest/activityid",
64+
"objectType": "Activity"
65+
}
66+
],
67+
"other": [
68+
{
69+
"id": "http://tincanapi.com/conformancetest/activityid",
70+
"objectType": "Activity"
71+
}
72+
]
73+
},
74+
"revision": "test",
75+
"platform": "test",
76+
"language": "en-US",
77+
"statement": {
78+
"objectType": "StatementRef",
79+
"id": "16fd2706-8baf-433b-82eb-8c7fada847da"
80+
},
81+
"extensions": {
82+
"http://id.tincanapi.com/extension/topic": "Conformance Testing"
83+
}
84+
},
85+
"attachments": [
86+
{
87+
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
88+
"display": {
89+
"en-US": "Text attachment"
90+
},
91+
"contentType": "text/plain",
92+
"length": 18,
93+
"sha2": "bd1a58265d96a3d1981710dab8b1e1ed04a8d7557ea53ab0cf7b44c04fd01545"
94+
}
95+
]
96+
}

src/StatementJsonFixtures.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public static function getStatementWithGroupAuthority()
115115
return static::load('with_group_authority');
116116
}
117117

118+
public static function getAllPropertiesStatement()
119+
{
120+
return static::load('all_properties');
121+
}
122+
118123
/**
119124
* Loads a collection of statements.
120125
*

0 commit comments

Comments
 (0)