Skip to content

Commit 48d92bb

Browse files
committed
Add tests for sharing camps
1 parent b0ca247 commit 48d92bb

File tree

71 files changed

+1871
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1871
-73
lines changed

api/fixtures/activities.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ App\Entity\Activity:
2424
location: <word()>
2525
rootContentNode: '@columnLayout1campPrototype'
2626
category: '@category1campPrototype'
27+
activity1campShared:
28+
camp: '@campShared'
29+
title: <word()>
30+
location: <word()>
31+
rootContentNode: '@columnLayout1campShared'
32+
category: '@category1campShared'

api/fixtures/activity-progress-labels.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,12 @@ App\Entity\ActivityProgressLabel:
3535
camp: '@campPrototype'
3636
position: 2
3737
title: 'Überprüft'
38+
activityProgressLabel1campShared:
39+
camp: '@campShared'
40+
position: 0
41+
title: 'In Planung'
42+
activityProgressLabel2campShared:
43+
camp: '@campShared'
44+
position: 1
45+
title: 'Geplant'
3846

api/fixtures/activityResponsibles.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ App\Entity\ActivityResponsible:
1111
activityResponsible1campPrototype:
1212
campCollaboration: '@campCollaboration1campPrototype'
1313
activity: '@activity1campPrototype'
14+
activityResponsible1campShared:
15+
campCollaboration: '@campCollaboration1campShared'
16+
activity: '@activity1campShared'

api/fixtures/campCollaborations.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ App\Entity\CampCollaboration:
7777
camp: '@campPrototype'
7878
status: established
7979
role: manager
80+
campCollaboration1campShared:
81+
user: '@user4unrelated'
82+
camp: '@campShared'
83+
status: established
84+
role: manager

api/fixtures/camps.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ App\Entity\Camp:
1010
owner: '@user1manager'
1111
creator: '@user2member'
1212
isPrototype: false
13+
isShared: false
14+
sharedBy: null
15+
sharedSince: null
1316
campPrototypeId: null
1417
camp2:
1518
shortTitle: Camp2
@@ -22,6 +25,9 @@ App\Entity\Camp:
2225
owner: '@admin'
2326
creator: '@user4unrelated'
2427
isPrototype: false
28+
isShared: false
29+
sharedBy: null
30+
sharedSince: null
2531
campPrototypeId: null
2632
campUnrelated:
2733
shortTitle: CampUnrelated
@@ -34,6 +40,9 @@ App\Entity\Camp:
3440
owner: '@admin'
3541
creator: '@admin'
3642
isPrototype: false
43+
isShared: false
44+
sharedBy: null
45+
sharedSince: null
3746
campPrototypeId: null
3847
campPrototype:
3948
shortTitle: CampPrototype
@@ -46,4 +55,22 @@ App\Entity\Camp:
4655
owner: '@admin'
4756
creator: '@admin'
4857
isPrototype: true
58+
isShared: false
59+
sharedBy: null
60+
sharedSince: null
61+
campPrototypeId: null
62+
campShared:
63+
shortTitle: CampPrototype
64+
title: <word()>
65+
motto: <sentence()>
66+
addressName: <word()>
67+
addressStreet: <address()>
68+
addressZipcode: <postcode()>
69+
addressCity: <city()>
70+
owner: '@admin'
71+
creator: '@admin'
72+
isPrototype: false
73+
isShared: true
74+
sharedBy: '@admin'
75+
sharedSince: '<(new DateTime("2025-09-03 12:00:00"))>'
4976
campPrototypeId: null

api/fixtures/categories.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,10 @@ App\Entity\Category:
4343
color: '#4DBB52'
4444
numberingStyle: 1
4545
rootContentNode: '@columnLayout2campPrototype'
46+
category1campShared:
47+
camp: '@campShared'
48+
short: LS
49+
name: Lagersport
50+
color: '#4DBB52'
51+
numberingStyle: 1
52+
rootContentNode: '@columnLayout2campShared'

api/fixtures/checklistItems.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ App\Entity\ChecklistItem:
2222
checklistItemPrototype_1_1:
2323
checklist: '@checklist1campPrototype'
2424
text: 'CampPrototype_List1_Item1'
25+
checklistItemShared_1_1:
26+
checklist: '@checklist1campShared'
27+
text: 'CampShared_List1_Item1'

api/fixtures/checklistNodes.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ App\Entity\ContentNode\ChecklistNode:
2121
slot: '1'
2222
position: 5
2323
instanceName: <word()>
24+
contentType: '@contentTypeChecklist'
25+
checklistNodeCampShared:
26+
root: '@columnLayout1campShared'
27+
parent: '@columnLayout1campShared'
28+
slot: '1'
29+
position: 5
30+
instanceName: <word()>
2431
contentType: '@contentTypeChecklist'

api/fixtures/checklists.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ App\Entity\Checklist:
1818
camp: null
1919
isPrototype: true
2020
name: 'J+S Ausbildungsziele'
21+
checklist1campShared:
22+
camp: '@campShared'
23+
name: 'PBS Ausbildungsziele'

api/fixtures/columnLayouts.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,19 @@ App\Entity\ContentNode\ColumnLayout:
9595
data: { columns: [{ slot: '1', width: 12 }] }
9696
instanceName: <word()>
9797
contentType: '@contentTypeColumnLayout'
98+
columnLayout1campShared:
99+
root: '@self'
100+
parent: null
101+
slot: null
102+
position: 0
103+
data: { columns: [{ slot: '1', width: 12 }] }
104+
instanceName: <word()>
105+
contentType: '@contentTypeColumnLayout'
106+
columnLayout2campShared:
107+
root: '@self'
108+
parent: null
109+
slot: null
110+
position: 0
111+
data: { columns: [{ slot: '1', width: 12 }] }
112+
instanceName: <word()>
113+
contentType: '@contentTypeColumnLayout'

0 commit comments

Comments
 (0)