Skip to content

Commit 5b091b2

Browse files
committed
[WIP] fixtures for WorkspaceTests
1 parent a7aa881 commit 5b091b2

27 files changed

+154
-167
lines changed

Tests/Functional/Datahandler/Workspace/ContainerTest.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ protected function setUp(): void
2323
{
2424
parent::setUp();
2525
$this->importCSVDataSet(__DIR__ . '/Fixtures/pages.csv');
26-
$this->importCSVDataSet(__DIR__ . '/Fixtures/tt_content.csv');
2726
$this->importCSVDataSet(__DIR__ . '/Fixtures/sys_workspace.csv');
2827
$this->backendUser->setWorkspace(1);
2928
$context = GeneralUtility::makeInstance(Context::class);
@@ -36,10 +35,10 @@ protected function setUp(): void
3635
*/
3736
public function deleteContainerDeleteChildren(): void
3837
{
39-
$this->importCSVDataSet(__DIR__ . '/Fixtures/tt_content_container_with_child_in_workspace.csv');
38+
$this->importCSVDataSet(__DIR__ . '/Fixtures/DeleteContainerDeleteChildren.csv');
4039
$cmdmap = [
4140
'tt_content' => [
42-
11 => [
41+
1 => [
4342
'delete' => 1,
4443
],
4544
],
@@ -54,6 +53,8 @@ public function deleteContainerDeleteChildren(): void
5453
*/
5554
public function newVersionDoesNotCreateNewVersionsOfChildren(): void
5655
{
56+
$this->importCSVDataSet(__DIR__ . '/Fixtures/NewVersionDoesNotCreateNewVersionsOfChildren.csv');
57+
self::assertCSVDataSet(__DIR__ . '/Fixtures/NewVersionDoesNotCreateNewVersionsOfChildren.csv');
5758
$datamap = [
5859
'tt_content' => [
5960
1 => [
@@ -72,6 +73,7 @@ public function newVersionDoesNotCreateNewVersionsOfChildren(): void
7273
*/
7374
public function moveChildsColPosInContainer(): void
7475
{
76+
$this->importCSVDataSet(__DIR__ . '/Fixtures/MoveChildsColPosInContainer.csv');
7577
$cmdmap = [
7678
'tt_content' => [
7779
2 => [
@@ -96,6 +98,7 @@ public function moveChildsColPosInContainer(): void
9698
*/
9799
public function moveChildOutsideContainer(): void
98100
{
101+
$this->importCSVDataSet(__DIR__ . '/Fixtures/MoveChildOutsideContainer.csv');
99102
$cmdmap = [
100103
'tt_content' => [
101104
2 => [
@@ -121,6 +124,7 @@ public function moveChildOutsideContainer(): void
121124
*/
122125
public function moveChildsColPosInOtherContainer(): void
123126
{
127+
$this->importCSVDataSet(__DIR__ . '/Fixtures/MoveChildsColPosInOtherContainer.csv');
124128
$cmdmap = [
125129
'tt_content' => [
126130
2 => [
@@ -146,6 +150,7 @@ public function moveChildsColPosInOtherContainer(): void
146150
*/
147151
public function copyChildsColPosInContainer(): void
148152
{
153+
$this->importCSVDataSet(__DIR__ . '/Fixtures/CopyChildsColPosInContainer.csv');
149154
$cmdmap = [
150155
'tt_content' => [
151156
2 => [
@@ -171,6 +176,7 @@ public function copyChildsColPosInContainer(): void
171176
*/
172177
public function copyChildOutsideContainer(): void
173178
{
179+
$this->importCSVDataSet(__DIR__ . '/Fixtures/CopyChildOutsideContainer.csv');
174180
$cmdmap = [
175181
'tt_content' => [
176182
2 => [
@@ -197,6 +203,7 @@ public function copyChildOutsideContainer(): void
197203
*/
198204
public function copyChildsColPosInOtherContainer(): void
199205
{
206+
$this->importCSVDataSet(__DIR__ . '/Fixtures/CopyChildsColPosInOtherContainer.csv');
200207
$cmdmap = [
201208
'tt_content' => [
202209
2 => [
@@ -222,6 +229,7 @@ public function copyChildsColPosInOtherContainer(): void
222229
*/
223230
public function copyContainer(): void
224231
{
232+
$this->importCSVDataSet(__DIR__ . '/Fixtures/CopyContainer.csv');
225233
$cmdmap = [
226234
'tt_content' => [
227235
1 => [
@@ -245,6 +253,7 @@ public function copyContainer(): void
245253
*/
246254
public function moveRecordInColPosCreatesWorkspaceElementInContainer()
247255
{
256+
$this->importCSVDataSet(__DIR__ . '/Fixtures/MoveRecordInColPosCreatesWorkspaceElementInContainer.csv');
248257
$cmdmap = [
249258
'tt_content' => [
250259
5 => [
@@ -270,7 +279,7 @@ public function moveRecordInColPosCreatesWorkspaceElementInContainer()
270279
*/
271280
public function copyContainerWithChildHasDeletedPlaceholderInWorkspaceDoNotCopyThisChild(): void
272281
{
273-
$this->importCSVDataSet(__DIR__ . '/Fixtures/tt_content_deleted_placeholder.csv');
282+
$this->importCSVDataSet(__DIR__ . '/Fixtures/CopyContainerWithChildHasDeletedPlaceholderInWorkspaceDoNotCopyThisChild.csv');
274283
$cmdmap = [
275284
'tt_content' => [
276285
10 => [
@@ -294,7 +303,7 @@ public function copyContainerWithChildHasDeletedPlaceholderInWorkspaceDoNotCopyT
294303
*/
295304
public function deleteContainerWithChildHasDeletedPlaceholderInWorkspaceDoNotDiscardThisChild(): void
296305
{
297-
$this->importCSVDataSet(__DIR__ . '/Fixtures/tt_content_deleted_placeholder.csv');
306+
$this->importCSVDataSet(__DIR__ . '/Fixtures/DeleteContainerWithChildHasDeletedPlaceholderInWorkspaceDoNotDiscardThisChild.csv');
298307
$cmdmap = [
299308
'tt_content' => [
300309
10 => [
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"tt_content"
2+
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent"
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0
4+
,2,1,"header","header-default",256,0,200,1
5+
,5,1,"header","second element",512,0,200,1
6+
,3,1,"header","left-side-default",786,0,201,1
7+
,4,1,"header","outside",1024,0,0,0
Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
"pages"
2-
,"uid","pid","title"
3-
,1,0,"page-1"
4-
,3,0,"page-2"
51
"tt_content"
62
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent","l18n_parent","l10n_source","t3ver_oid","t3ver_wsid","t3ver_state","t3ver_stage"
7-
,1,1,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0,0,0,0,0
8-
,2,1,"header","header-default",128,0,200,1,0,0,0,0,0,0
9-
,3,1,"header","left-side-default",64,0,201,1,0,0,0,0,0,0
10-
,4,1,"header","outside",512,0,0,0,0,0,0,0,0,0
11-
,5,1,"header","second element",256,0,200,1,0,0,0,0,0,0
12-
,91,1,"b13-2cols-with-header-container","second-container",1028,0,0,0,0,0,0,0,0,0
13-
,92,1,"header","child-in-second-container-with-sorting-before-children-in-first-container",1,0,200,91,0,0,0,0,0,0
14-
,93,3,"header","header-default",256,0,0,0,0,0,0,1,1,0
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0,0,0,0,0,0,0
4+
,2,1,"header","header-default",256,0,200,1,0,0,0,0,0,0
5+
,5,1,"header","second element",512,0,200,1,0,0,0,0,0,0
6+
,3,1,"header","left-side-default",786,0,201,1,0,0,0,0,0,0
7+
,4,1,"header","outside",1024,0,0,0,0,0,0,0,0,0
8+
,6,3,"header","header-default",256,0,0,0,0,0,0,1,1,0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"tt_content"
2+
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent"
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0
4+
,2,1,"header","header-default",256,0,200,1
5+
,5,1,"header","second element",386,0,200,1
6+
,3,1,"header","left-side-default",512,0,201,1
7+
,4,1,"header","outside",1024,0,0,0
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
"pages"
2-
,"uid","pid","title"
3-
,1,0,"page-1"
4-
,3,0,"page-2"
51
"tt_content"
62
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent","l18n_parent","l10n_source","t3ver_oid","t3ver_wsid","t3ver_state","t3ver_stage"
7-
,1,1,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0,0,0,0,0
8-
,2,1,"header","header-default",128,0,200,1,0,0,0,0,0,0
9-
,3,1,"header","left-side-default",64,0,201,1,0,0,0,0,0,0
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0,0,0,0,0,0,0
4+
,2,1,"header","header-default",256,0,200,1,0,0,0,0,0,0
5+
,5,1,"header","second element",386,0,200,1,0,0,0,0,0,0
6+
,3,1,"header","left-side-default",512,0,201,1,0,0,0,0,0,0
107
,4,1,"header","outside",1024,0,0,0,0,0,0,0,0,0
11-
,5,1,"header","second element",256,0,200,1,0,0,0,0,0,0
12-
,91,1,"b13-2cols-with-header-container","second-container",1540,0,0,0,0,0,0,0,0,0
13-
,92,1,"header","child-in-second-container-with-sorting-before-children-in-first-container",1,0,200,91,0,0,0,0,0,0
14-
,93,1,"header","header-default (copy 1)",512,0,201,1,0,0,0,1,1,0
8+
,6,1,"header","header-default (copy 1)",449,0,201,1,0,0,0,1,1,0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"tt_content"
2+
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent"
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0
4+
,2,1,"header","header-default",256,0,200,1
5+
,5,1,"header","second element",512,0,200,1
6+
,3,1,"header","left-side-default",786,0,201,1
7+
,4,1,"header","outside",1024,0,0,0
8+
,91,1,"b13-2cols-with-header-container","second-container",2048,0,0,0
9+
,92,1,"header","child-in-second-container",4096,0,200,91

Tests/Functional/Datahandler/Workspace/Fixtures/CopyChildsColPosInOtherContainerResult.csv

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
,3,0,"page-2"
55
"tt_content"
66
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent","l18n_parent","l10n_source","t3ver_oid","t3ver_wsid","t3ver_state","t3ver_stage"
7-
,1,1,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0,0,0,0,0
8-
,2,1,"header","header-default",128,0,200,1,0,0,0,0,0,0
9-
,3,1,"header","left-side-default",64,0,201,1,0,0,0,0,0,0
10-
,4,1,"header","outside",512,0,0,0,0,0,0,0,0,0
11-
,5,1,"header","second element",256,0,200,1,0,0,0,0,0,0
12-
,91,1,"b13-2cols-with-header-container","second-container",1028,0,0,0,0,0,0,0,0,0
13-
,92,1,"header","child-in-second-container-with-sorting-before-children-in-first-container",1,0,200,91,0,0,0,0,0,0
14-
,93,1,"header","header-default (copy 1)",32,0,201,91,0,0,0,1,1,0
7+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0,0,0,0,0,0,0
8+
,2,1,"header","header-default",256,0,200,1,0,0,0,0,0,0
9+
,5,1,"header","second element",512,0,200,1,0,0,0,0,0,0
10+
,3,1,"header","left-side-default",786,0,201,1,0,0,0,0,0,0
11+
,4,1,"header","outside",1024,0,0,0,0,0,0,0,0,0
12+
,91,1,"b13-2cols-with-header-container","second-container",2048,0,0,0,0,0,0,0,0,0
13+
,92,1,"header","child-in-second-container",4096,0,200,91,0,0,0,0,0,0
14+
,93,1,"header","header-default (copy 1)",4352,0,201,91,0,0,0,1,1,0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"tt_content"
2+
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent"
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,,
4+
,2,1,"header","header-default",256,0,200,1
5+
,5,1,"header","second element",386,0,200,1
6+
,3,1,"header","left-side-default",512,0,201,1
7+
,4,1,"header","outside",1024,0,0,
Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
"pages"
2-
,"uid","pid","title"
3-
,1,0,"page-1"
4-
,3,0,"page-2"
51
"tt_content"
62
,"uid","pid","CType","header","sorting","sys_language_uid","colPos","tx_container_parent","l18n_parent","l10n_source","t3ver_oid","t3ver_wsid","t3ver_state","t3ver_stage"
7-
,1,1,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0,0,0,0,0
8-
,2,1,"header","header-default",128,0,200,1,0,0,0,0,0,0
9-
,3,1,"header","left-side-default",64,0,201,1,0,0,0,0,0,0
10-
,4,1,"header","outside",512,0,0,0,0,0,0,0,0,0
11-
,5,1,"header","second element",256,0,200,1,0,0,0,0,0,0
12-
,91,1,"b13-2cols-with-header-container","second-container",1028,0,0,0,0,0,0,0,0,0
13-
,92,1,"header","child-in-second-container-with-sorting-before-children-in-first-container",1,0,200,91,0,0,0,0,0,0
14-
,93,3,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0,0,1,1,0
15-
,94,3,"header","left-side-default",512,0,201,93,0,0,0,1,1,0
16-
,95,3,"header","second element",384,0,200,93,0,0,0,1,1,0
17-
,96,3,"header","header-default",320,0,200,93,0,0,0,1,1,0
3+
,1,1,"b13-2cols-with-header-container","container-default",128,0,0,0,0,0,0,0,0,0
4+
,2,1,"header","header-default",256,0,200,1,0,0,0,0,0,0
5+
,5,1,"header","second element",386,0,200,1,0,0,0,0,0,0
6+
,3,1,"header","left-side-default",512,0,201,1,0,0,0,0,0,0
7+
,4,1,"header","outside",1024,0,0,0,0,0,0,0,0,0
8+
,6,3,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0,0,1,1,0
9+
,7,3,"header","second element",512,0,200,6,0,0,0,1,1,0
10+
,8,3,"header","header-default",384,0,200,6,0,0,0,1,1,0
11+
,9,3,"header","left-side-default",768,0,201,6,0,0,0,1,1,0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"tt_content"
2+
,"uid","pid","CType","header","sorting","t3ver_state","t3ver_wsid","colPos","tx_container_parent","t3ver_oid"
3+
,10,1,"b13-2cols-with-header-container","container-default",256,0,0,0,0,0
4+
,11,1,"header","header",512,0,0,200,10,0
5+
,12,1,"header","header-deleted-in-ws",512,2,1,200,10,11

0 commit comments

Comments
 (0)