‪TYPO3CMS  11.5
ActionTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest;
22 use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequestContext;
23 use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\ResponseContent;
24 
29 {
33  public function ‪verifyCleanReferenceIndex(): void
34  {
35  // The test verifies the imported data set has a clean reference index by the check in tearDown()
36  self::assertTrue(true);
37  }
38 
43  public function ‪createContents(): void
44  {
45  parent::createContents();
46  $this->actionService->publishRecords(
47  [
48  self::TABLE_Content => [$this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast']],
49  ]
50  );
51  $this->assertCSVDataSet(__DIR__ . '/DataSet/createContents.csv');
52 
53  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
54  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
55  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
56  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', 'Testing #2'));
57  }
58 
62  public function ‪createContentAndCopyContent(): void
63  {
64  parent::createContentAndCopyContent();
65  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
66  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId']);
67  $this->assertCSVDataSet(__DIR__ . '/DataSet/createContentAndCopyContent.csv');
68 
69  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
70  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
71  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
72  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', 'Testing #1 (copy 1)'));
73  }
74 
79  public function ‪modifyContent(): void
80  {
81  parent::modifyContent();
82  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
83  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyContent.csv');
84 
85  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
86  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
87  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
88  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
89  }
90 
94  public function ‪hideContent(): void
95  {
96  parent::hideContent();
97  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
98  $this->assertCSVDataSet(__DIR__ . '/DataSet/hideContent.csv');
99 
100  $response = $this->executeFrontendSubRequest(
101  (new InternalRequest())->withPageId(self::VALUE_PageId),
102  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)
103  );
104  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
105  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
106  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
107  }
108 
112  public function ‪hideContentAndMoveToDifferentPage(): void
113  {
114  parent::hideContent();
115  parent::moveContentToDifferentPage();
116  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
117  $this->assertCSVDataSet(__DIR__ . '/DataSet/hideContentAndMoveToDifferentPage.csv');
118 
119  $response = $this->executeFrontendSubRequest(
120  (new InternalRequest())->withPageId(self::VALUE_PageId),
121  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)
122  );
123  $responseSectionsSource = ResponseContent::fromString((string)$response->getBody())->getSections();
124  self::assertThat($responseSectionsSource, $this->‪getRequestSectionHasRecordConstraint()
125  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
126  self::assertThat($responseSectionsSource, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
127  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
128  $response = $this->executeFrontendSubRequest(
129  (new InternalRequest())->withPageId(self::VALUE_PageIdTarget),
130  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)
131  );
132  $responseSectionsTarget = ResponseContent::fromString((string)$response->getBody())->getSections();
133  self::assertThat($responseSectionsTarget, $this->‪getRequestSectionHasRecordConstraint()
134  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
135  }
136 
140  public function ‪deleteContent(): void
141  {
142  parent::deleteContent();
143  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
144  $this->assertCSVDataSet(__DIR__ . '/DataSet/deleteContent.csv');
145 
146  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
147  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
148  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
149  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
150  self::assertThat($responseSections, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
151  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
152  }
153 
158  {
159  // this test will not rely on a translated page, because it only tests the act of publishing.
160  // The actual content of frontend response does not matter much, and it would increase the scope
161  // of the test, when a translated page is also published here.
162  parent::deleteLocalizedContentAndDeleteContent();
163  $this->actionService->publishRecords(
164  [
165  self::TABLE_Content => [self::VALUE_ContentIdThird, self::VALUE_ContentIdThirdLocalized],
166  ]
167  );
168  $this->assertCSVDataSet(__DIR__ . '/DataSet/deleteLocalizedContentNDeleteContent.csv');
169 
170  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId));
171  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
172  self::assertThat($responseSections, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
173  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3', '[Translate to Dansk:] Regular Element #3'));
174  }
175 
179  public function ‪copyContent(): void
180  {
181  parent::copyContent();
182  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId']);
183  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyContent.csv');
184 
185  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
186  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
187  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
188  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2 (copy 1)'));
189  }
190 
194  public function ‪copyContentToLanguage(): void
195  {
196  // Create and publish translated page first
197  $translatedPageResult = $this->actionService->copyRecordToLanguage(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
198  $this->actionService->publishRecord(self::TABLE_Page, $translatedPageResult[self::TABLE_Page][self::VALUE_PageId]);
199  parent::copyContentToLanguage();
200  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
201  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyContentToLanguage.csv');
202 
203  // Set up "dk" to not have overlays
204  $languageConfiguration = ‪$this->siteLanguageConfiguration;
205  $languageConfiguration[‪self::VALUE_LanguageId]['fallbackType'] = 'free';
206  $this->‪setUpFrontendSite(1, $languageConfiguration);
207  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId));
208  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
209  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
210  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Regular Element #3', '[Translate to Dansk:] Regular Element #2'));
211  }
212 
217  {
218  // Create and publish translated page first
219  $translatedPageResult = $this->actionService->copyRecordToLanguage(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageIdSecond);
220  $this->actionService->publishRecord(self::TABLE_Page, $translatedPageResult[self::TABLE_Page][self::VALUE_PageId]);
221  parent::copyContentToLanguageFromNonDefaultLanguage();
222  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
223  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyContentToLanguageFromNonDefaultLanguage.csv');
224 
225  // Set up "dk" to not have overlays
226  $languageConfiguration = ‪$this->siteLanguageConfiguration;
227  $languageConfiguration[‪self::VALUE_LanguageIdSecond]['fallbackType'] = 'free';
228  $this->‪setUpFrontendSite(1, $languageConfiguration);
229  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageIdSecond));
230  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
231  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
232  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Deutsch:] [Translate to Dansk:] Regular Element #3'));
233  }
234 
238  public function ‪localizeContent(): void
239  {
240  // Create and publish translated page first
241  $translatedPageResult = $this->actionService->copyRecordToLanguage(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
242  $this->actionService->publishRecord(self::TABLE_Page, $translatedPageResult[self::TABLE_Page][self::VALUE_PageId]);
243  parent::localizeContent();
244  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
245  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizeContent.csv');
246 
247  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId));
248  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
249  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
250  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Regular Element #1', '[Translate to Dansk:] Regular Element #2'));
251  }
252 
256  public function ‪localizeContentAfterMovedContent(): void
257  {
258  parent::localizeContentAfterMovedContent();
259  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
260  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizeContentAfterMovedContent.csv');
261  }
262 
267  {
268  parent::localizeContentAfterMovedInLiveContent();
269  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
270  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizeContentAfterMovedInLiveContent.csv');
271  }
272 
277  {
278  // Create and publish translated page first
279  $translatedPageResult = $this->actionService->copyRecordToLanguage(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageIdSecond);
280  $this->actionService->publishRecord(self::TABLE_Page, $translatedPageResult[self::TABLE_Page][self::VALUE_PageId]);
281  parent::localizeContentFromNonDefaultLanguage();
282  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
283  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizeContentFromNonDefaultLanguage.csv');
284 
285  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageIdSecond));
286  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
287  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
288  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Deutsch:] [Translate to Dansk:] Regular Element #1', '[Translate to Deutsch:] [Translate to Dansk:] Regular Element #3'));
289  }
290 
294  public function ‪changeContentSorting(): void
295  {
296  parent::changeContentSorting();
297  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
298  $this->assertCSVDataSet(__DIR__ . '/DataSet/changeContentSorting.csv');
299 
300  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
301  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
302  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
303  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
304  }
305 
309  public function ‪changeContentSortingAfterSelf(): void
310  {
311  parent::changeContentSortingAfterSelf();
312  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
313  $this->assertCSVDataSet(__DIR__ . '/DataSet/changeContentSortingAfterSelf.csv');
314 
315  $response = $this->executeFrontendSubRequest(
316  (new InternalRequest())->withPageId(self::VALUE_PageId),
317  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
318  );
319  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
320  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
321  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
322  }
323 
327  public function ‪moveContentToDifferentPage(): void
328  {
329  parent::moveContentToDifferentPage();
330  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
331  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveContentToDifferentPage.csv');
332 
333  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
334  $responseSectionsSource = ResponseContent::fromString((string)$response->getBody())->getSections();
335  self::assertThat($responseSectionsSource, $this->‪getRequestSectionHasRecordConstraint()
336  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
337  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdTarget));
338  $responseSectionsTarget = ResponseContent::fromString((string)$response->getBody())->getSections();
339  self::assertThat($responseSectionsTarget, $this->‪getRequestSectionHasRecordConstraint()
340  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
341  }
342 
347  {
348  parent::moveContentToDifferentPageAndChangeSorting();
349  $this->actionService->publishRecords([
350  self::TABLE_Content => [self::VALUE_ContentIdFirst, self::VALUE_ContentIdSecond],
351  ]);
352  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveContentToDifferentPageNChangeSorting.csv');
353 
354  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdTarget));
355  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
356  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
357  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
358  }
359 
363  public function ‪moveContentToDifferentPageAndHide(): void
364  {
365  parent::moveContentToDifferentPageAndHide();
366  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
367  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveContentToDifferentPageAndHide.csv');
368 
369  $response = $this->executeFrontendSubRequest(
370  (new InternalRequest())->withPageId(self::VALUE_PageIdTarget),
371  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
372  );
373  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
374  self::assertThat($responseSections, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
375  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
376  }
377 
382  {
383  parent::moveLocalizedContentToDifferentPage();
384  // Also publish the newly created page translation
385  $this->actionService->publishRecord(self::TABLE_Page, 91);
386  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdThird);
387  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveLocalizedContentToDifferentPage.csv');
388 
389  // Check if the regular LIVE page does NOT contain the moved record anymore
390  $response = $this->executeFrontendSubRequest(
391  (new InternalRequest())->withPageId(self::VALUE_PageId),
392  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(0)
393  );
394  $responseSectionsSource = ResponseContent::fromString((string)$response->getBody())->getSections();
395  self::assertThat($responseSectionsSource, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
396  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3'));
397 
398  $response = $this->executeFrontendSubRequest(
399  (new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId),
400  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(0)
401  );
402  $responseSectionsSource = ResponseContent::fromString((string)$response->getBody())->getSections();
403  self::assertThat($responseSectionsSource, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
404  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Regular Element #3'));
405 
406  // Check if the target LIVE page DOES contain the moved record
407  $response = $this->executeFrontendSubRequest(
408  (new InternalRequest())->withPageId(self::VALUE_PageIdTarget),
409  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(0)
410  );
411  $responseSectionsTarget = ResponseContent::fromString((string)$response->getBody())->getSections();
412  self::assertThat($responseSectionsTarget, $this->‪getRequestSectionHasRecordConstraint()
413  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3'));
414 
415  // Also test the translated page in the workspace contains the translated record
416  $response = $this->executeFrontendSubRequest(
417  (new InternalRequest())->withPageId(self::VALUE_PageIdTarget)->withLanguageId(self::VALUE_LanguageId),
418  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
419  );
420  $responseSectionsTarget = ResponseContent::fromString((string)$response->getBody())->getSections();
421  self::assertThat($responseSectionsTarget, $this->‪getRequestSectionHasRecordConstraint()
422  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Regular Element #3'));
423 
424  // Also test the translated LIVE page, and make sure the translated record is NOT shown, as it has not been published yet
425  $response = $this->executeFrontendSubRequest(
426  (new InternalRequest())->withPageId(self::VALUE_PageIdTarget)->withLanguageId(self::VALUE_LanguageId),
427  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(0)
428  );
429  $responseSectionsTarget = ResponseContent::fromString((string)$response->getBody())->getSections();
430  self::assertThat($responseSectionsTarget, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
431  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Regular Element #3'));
432  }
433 
441  public function ‪createPage(): void
442  {
443  parent::createPage();
444  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['newPageId']);
445  $this->assertCSVDataSet(__DIR__ . '/DataSet/createPage.csv');
446 
447  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId($this->recordIds['newPageId']));
448  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
449  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
450  ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
451  }
452 
457  {
458  parent::createPageAndSubPageAndSubPageContent();
459  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['newPageId']);
460  $this->assertCSVDataSet(__DIR__ . '/DataSet/createPageAndSubPageAndSubPageContent.csv');
461 
462  // Sub page is not published together with parent page
463  $response = $this->executeFrontendSubRequest(
464  (new InternalRequest())->withPageId($this->recordIds['newSubPageId']),
465  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
466  );
467  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
468  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
469  ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1 #1'));
470  }
471 
475  public function ‪modifyPage(): void
476  {
477  parent::modifyPage();
478  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
479  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyPage.csv');
480 
481  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
482  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
483  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
484  ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
485  }
486 
490  public function ‪deletePage(): void
491  {
492  parent::deletePage();
493  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
494  $this->assertCSVDataSet(__DIR__ . '/DataSet/deletePage.csv');
495 
496  $response = $this->executeFrontendSubRequest(
497  (new InternalRequest())->withPageId(self::VALUE_PageId)
498  );
499  self::assertEquals(404, $response->getStatusCode());
500  }
501 
505  public function ‪deleteContentAndPage(): void
506  {
507  parent::deleteContentAndPage();
508  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
509  $this->assertCSVDataSet(__DIR__ . '/DataSet/deleteContentAndPage.csv');
510 
511  $response = $this->executeFrontendSubRequest(
512  (new InternalRequest())->withPageId(self::VALUE_PageId)
513  );
514  self::assertEquals(404, $response->getStatusCode());
515  }
516 
520  public function ‪localizeNestedPagesAndContents(): void
521  {
522  parent::localizeNestedPagesAndContents();
523  // Will publish only the page translation, not it's content elements
524  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedParentPageId']);
525  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizeNestedPagesAndContents.csv');
526  }
527 
531  public function ‪copyPage(): void
532  {
533  parent::copyPage();
534  $this->actionService->publishRecords(
535  [
536  self::TABLE_Page => [$this->recordIds['newPageId']],
537  self::TABLE_Content => [$this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast']],
538  ]
539  );
540  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyPage.csv');
541 
542  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId($this->recordIds['newPageId']));
543  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
544  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
545  ->setTable(self::TABLE_Page)->setField('title')->setValues('Relations'));
546  }
547 
551  public function ‪copyPageFreeMode(): void
552  {
553  parent::copyPageFreeMode();
554  $this->actionService->publishRecords(
555  [
556  self::TABLE_Page => [$this->recordIds['newPageId']],
557  self::TABLE_Content => [$this->recordIds['newContentIdTenth'], $this->recordIds['newContentIdTenthLocalized'], $this->recordIds['newContentIdTenthLocalized2']],
558  ]
559  );
560  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyPageFreeMode.csv');
561 
562  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId($this->recordIds['newPageId']));
563  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
564  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
565  ->setTable(self::TABLE_Page)->setField('title')->setValues('Target'));
566  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
567  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #10'));
568  }
569 
573  public function ‪localizePage(): void
574  {
575  parent::localizePage();
576  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
577  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePage.csv');
578 
579  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId));
580  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
581  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
582  ->setTable(self::TABLE_Page)->setField('title')->setValues('[Translate to Dansk:] Relations'));
583  }
584 
588  public function ‪localizePageHiddenHideAtCopyFalse(): void
589  {
590  parent::localizePageHiddenHideAtCopyFalse();
591  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
592  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageHiddenHideAtCopyFalse.csv');
593  }
594 
599  {
600  parent::localizePageNotHiddenHideAtCopyFalse();
601  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
602  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageNotHiddenHideAtCopyFalse.csv');
603  }
604 
609  {
610  parent::localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset();
611  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
612  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset.csv');
613  }
614 
619  {
620  parent::localizePageHiddenHideAtCopyDisableHideAtCopyUnset();
621  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
622  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopyUnset.csv');
623  }
624 
629  {
630  parent::localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse();
631  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
632  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse.csv');
633  }
634 
639  {
640  parent::localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse();
641  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
642  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse.csv');
643  }
644 
649  {
650  parent::localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue();
651  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
652  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue.csv');
653  }
654 
659  {
660  parent::localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue();
661  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['localizedPageId']);
662  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue.csv');
663  }
664 
668  public function ‪createPageAndChangePageSorting(): void
669  {
670  parent::createPageAndChangePageSorting();
671  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['newPageId']);
672  $this->assertCSVDataSet(__DIR__ . '/DataSet/createPageAndChangePageSorting.csv');
673  }
674 
678  public function ‪createPageAndMoveCreatedPage(): void
679  {
680  parent::createPageAndMoveCreatedPage();
681  $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['newPageId']);
682  $this->assertCSVDataSet(__DIR__ . '/DataSet/createPageAndMoveCreatedPage.csv');
683  }
684 
688  public function ‪changePageSorting(): void
689  {
690  parent::changePageSorting();
691  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
692  $this->assertCSVDataSet(__DIR__ . '/DataSet/changePageSorting.csv');
693 
694  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
695  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
696  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
697  ->setTable(self::TABLE_Page)->setField('title')->setValues('Relations'));
698  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
699  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
700  }
701 
705  public function ‪changePageSortingAfterSelf(): void
706  {
707  parent::changePageSortingAfterSelf();
708  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
709  $this->assertCSVDataSet(__DIR__ . '/DataSet/changePageSortingAfterSelf.csv');
710 
711  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
712  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
713  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
714  ->setTable(self::TABLE_Page)->setField('title')->setValues('Relations'));
715  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
716  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
717  }
718 
722  public function ‪movePageToDifferentPage(): void
723  {
724  parent::movePageToDifferentPage();
725  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
726  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageToDifferentPage.csv');
727 
728  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
729  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
730  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
731  ->setTable(self::TABLE_Page)->setField('title')->setValues('Relations'));
732  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
733  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
734  }
735 
739  public function ‪movePageToDifferentPageTwice(): void
740  {
741  parent::movePageToDifferentPageTwice();
742  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
743  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageToDifferentPageTwice.csv');
744  }
745 
750  {
751  parent::movePageLocalizedToDifferentPageTwice();
752  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
753  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageLocalizedToDifferentPageTwice.csv');
754  }
755 
760  {
761  parent::movePageLocalizedInLiveToDifferentPageTwice();
762  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
763  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageLocalizedInLiveToDifferentPageTwice.csv');
764  }
765 
770  {
771  parent::movePageLocalizedInLiveWorkspaceChangedToDifferentPageTwice();
772  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
773  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageLocalizedInLiveWorkspaceChangedToDifferentPageTwice.csv');
774  }
775 
780  {
781  parent::movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice();
782  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
783  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice.csv');
784  }
785 
790  {
791  parent::movePageToDifferentPageAndChangeSorting();
792  $this->actionService->publishRecords([
793  self::TABLE_Page => [self::VALUE_PageId, self::VALUE_PageIdTarget],
794  ]);
795  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageToDifferentPageNChangeSorting.csv');
796 
797  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
798  $responseSectionsPage = ResponseContent::fromString((string)$response->getBody())->getSections();
799  self::assertThat($responseSectionsPage, $this->‪getRequestSectionHasRecordConstraint()
800  ->setTable(self::TABLE_Page)->setField('title')->setValues('Relations'));
801  self::assertThat($responseSectionsPage, $this->‪getRequestSectionHasRecordConstraint()
802  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2'));
803  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdWebsite));
804  $responseSectionsWebsite = ResponseContent::fromString((string)$response->getBody())->getSections();
805  self::assertThat($responseSectionsWebsite, $this->‪getRequestSectionStructureHasRecordConstraint()
806  ->setRecordIdentifier(self::TABLE_Page . ':' . self::VALUE_PageIdWebsite)->setRecordField('__pages')
807  ->setTable(self::TABLE_Page)->setField('title')->setValues('Target', 'Relations', 'DataHandlerTest'));
808  }
809 
816  {
817  parent::movePageToDifferentPageAndCreatePageAfterMovedPage();
818  $this->actionService->publishRecords([
819  self::TABLE_Page => [self::VALUE_PageIdTarget, $this->recordIds['newPageId']],
820  ]);
821  $this->assertCSVDataSet(__DIR__ . '/DataSet/movePageToDifferentPageNCreatePageAfterMovedPage.csv');
822 
823  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdWebsite));
824  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
825  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
826  ->setRecordIdentifier(self::TABLE_Page . ':' . self::VALUE_PageIdWebsite)->setRecordField('__pages')
827  ->setTable(self::TABLE_Page)->setField('title')->setValues('Target', 'Testing #1', 'DataHandlerTest'));
828  }
829 
834  {
835  parent::changeContentSortingAndCopyDraftPage();
836  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
837  $this->assertCSVDataSet(__DIR__ . '/DataSet/changeContentSortingAndCopyDraftPage.csv');
838  }
839 
843  public function ‪createContentAndCopyDraftPage(): void
844  {
845  parent::createContentAndCopyDraftPage();
846  $this->actionService->publishRecords([
847  self::TABLE_Content => [$this->recordIds['newContentId']],
848  self::TABLE_Page => [$this->recordIds['copiedPageId']],
849  ]);
850  $this->assertCSVDataSet(__DIR__ . '/DataSet/createContentAndCopyDraftPage.csv');
851 
852  $response = $this->executeFrontendSubRequest(
853  (new InternalRequest())->withPageId($this->recordIds['copiedPageId']),
854  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
855  );
856  $responseSectionsDraft = ResponseContent::fromString((string)$response->getBody())->getSections();
857  self::assertThat($responseSectionsDraft, $this->‪getRequestSectionHasRecordConstraint()
858  ->setTable(static::TABLE_Content)->setField('header')->setValues('Testing #1'));
859  }
860 
864  public function ‪createContentAndLocalize(): void
865  {
866  parent::createContentAndLocalize();
867  $this->actionService->publishRecords([
868  self::TABLE_Content => [$this->recordIds['newContentId']],
869  ]);
870  $this->assertCSVDataSet(__DIR__ . '/DataSet/createContentAndLocalize.csv');
871 
872  $response = $this->executeFrontendSubRequest(
873  (new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId),
874  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
875  );
876  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
877  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
878  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
879  }
880 
884  public function ‪createPageAndCopyDraftParentPage(): void
885  {
886  parent::createPageAndCopyDraftParentPage();
887  $this->actionService->publishRecords([
888  self::TABLE_Page => [$this->recordIds['newPageId'], $this->recordIds['copiedPageId']],
889  ]);
890  $this->assertCSVDataSet(__DIR__ . '/DataSet/createPageAndCopyDraftParentPage.csv');
891  }
892 
897  {
898  parent::createPlaceholdersAndDeleteDraftParentPage();
899  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_ParentPageId);
900  $this->assertCSVDataSet(__DIR__ . '/DataSet/createPlaceholdersAndDeleteDraftParentPage.csv');
901  }
902 }
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\deleteLocalizedContentAndDeleteContent
‪deleteLocalizedContentAndDeleteContent()
Definition: ActionTest.php:157
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\modifyPage
‪modifyPage()
Definition: ActionTest.php:475
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageToDifferentPageAndCreatePageAfterMovedPage
‪movePageToDifferentPageAndCreatePageAfterMovedPage()
Definition: ActionTest.php:815
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue
‪localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue()
Definition: ActionTest.php:658
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\setUpFrontendSite
‪setUpFrontendSite(int $pageId, array $additionalLanguages=[])
Definition: AbstractDataHandlerActionTestCase.php:127
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\moveContentToDifferentPageAndHide
‪moveContentToDifferentPageAndHide()
Definition: ActionTest.php:363
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizeContent
‪localizeContent()
Definition: ActionTest.php:238
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionHasRecordConstraint
‪HasRecordConstraint getRequestSectionHasRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:245
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\copyContentToLanguage
‪copyContentToLanguage()
Definition: ActionTest.php:194
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\changeContentSorting
‪changeContentSorting()
Definition: ActionTest.php:294
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionStructureHasRecordConstraint
‪StructureHasRecordConstraint getRequestSectionStructureHasRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:261
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageToDifferentPageTwice
‪movePageToDifferentPageTwice()
Definition: ActionTest.php:739
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizeContentAfterMovedInLiveContent
‪localizeContentAfterMovedInLiveContent()
Definition: ActionTest.php:266
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createPageAndSubPageAndSubPageContent
‪createPageAndSubPageAndSubPageContent()
Definition: ActionTest.php:456
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\moveLocalizedContentToDifferentPage
‪moveLocalizedContentToDifferentPage()
Definition: ActionTest.php:381
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createContentAndLocalize
‪createContentAndLocalize()
Definition: ActionTest.php:864
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\deleteContent
‪deleteContent()
Definition: ActionTest.php:140
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\changePageSortingAfterSelf
‪changePageSortingAfterSelf()
Definition: ActionTest.php:705
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\changeContentSortingAndCopyDraftPage
‪changeContentSortingAndCopyDraftPage()
Definition: ActionTest.php:833
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\deletePage
‪deletePage()
Definition: ActionTest.php:490
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest
Definition: ActionTest.php:29
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\changeContentSortingAfterSelf
‪changeContentSortingAfterSelf()
Definition: ActionTest.php:309
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\AbstractActionTestCase\VALUE_LanguageId
‪const VALUE_LanguageId
Definition: AbstractActionTestCase.php:42
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset
‪localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset()
Definition: ActionTest.php:608
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse
‪localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse()
Definition: ActionTest.php:628
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageHiddenHideAtCopyDisableHideAtCopyUnset
‪localizePageHiddenHideAtCopyDisableHideAtCopyUnset()
Definition: ActionTest.php:618
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createPageAndChangePageSorting
‪createPageAndChangePageSorting()
Definition: ActionTest.php:668
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createContentAndCopyDraftPage
‪createContentAndCopyDraftPage()
Definition: ActionTest.php:843
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\hideContentAndMoveToDifferentPage
‪hideContentAndMoveToDifferentPage()
Definition: ActionTest.php:112
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createPlaceholdersAndDeleteDraftParentPage
‪createPlaceholdersAndDeleteDraftParentPage()
Definition: ActionTest.php:896
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\copyPageFreeMode
‪copyPageFreeMode()
Definition: ActionTest.php:551
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\deleteContentAndPage
‪deleteContentAndPage()
Definition: ActionTest.php:505
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse
‪localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse()
Definition: ActionTest.php:638
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\verifyCleanReferenceIndex
‪verifyCleanReferenceIndex()
Definition: ActionTest.php:33
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\AbstractActionTestCase\VALUE_LanguageIdSecond
‪const VALUE_LanguageIdSecond
Definition: AbstractActionTestCase.php:43
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createPage
‪createPage()
Definition: ActionTest.php:441
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue
‪localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue()
Definition: ActionTest.php:648
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizeNestedPagesAndContents
‪localizeNestedPagesAndContents()
Definition: ActionTest.php:520
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageToDifferentPage
‪movePageToDifferentPage()
Definition: ActionTest.php:722
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\hideContent
‪hideContent()
Definition: ActionTest.php:94
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageLocalizedInLiveWorkspaceChangedToDifferentPageTwice
‪movePageLocalizedInLiveWorkspaceChangedToDifferentPageTwice()
Definition: ActionTest.php:769
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createPageAndCopyDraftParentPage
‪createPageAndCopyDraftParentPage()
Definition: ActionTest.php:884
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\changePageSorting
‪changePageSorting()
Definition: ActionTest.php:688
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\copyContentToLanguageFromNonDefaultLanguage
‪copyContentToLanguageFromNonDefaultLanguage()
Definition: ActionTest.php:216
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\modifyContent
‪modifyContent()
Definition: ActionTest.php:79
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageLocalizedToDifferentPageTwice
‪movePageLocalizedToDifferentPageTwice()
Definition: ActionTest.php:749
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\copyPage
‪copyPage()
Definition: ActionTest.php:531
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageHiddenHideAtCopyFalse
‪localizePageHiddenHideAtCopyFalse()
Definition: ActionTest.php:588
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionDoesNotHaveRecordConstraint
‪DoesNotHaveRecordConstraint getRequestSectionDoesNotHaveRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:253
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizeContentAfterMovedContent
‪localizeContentAfterMovedContent()
Definition: ActionTest.php:256
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageLocalizedInLiveToDifferentPageTwice
‪movePageLocalizedInLiveToDifferentPageTwice()
Definition: ActionTest.php:759
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createContents
‪createContents()
Definition: ActionTest.php:43
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\copyContent
‪copyContent()
Definition: ActionTest.php:179
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\$siteLanguageConfiguration
‪array $siteLanguageConfiguration
Definition: AbstractDataHandlerActionTestCase.php:72
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createPageAndMoveCreatedPage
‪createPageAndMoveCreatedPage()
Definition: ActionTest.php:678
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePageNotHiddenHideAtCopyFalse
‪localizePageNotHiddenHideAtCopyFalse()
Definition: ActionTest.php:598
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizeContentFromNonDefaultLanguage
‪localizeContentFromNonDefaultLanguage()
Definition: ActionTest.php:276
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice
‪movePageLocalizedInLiveWorkspaceDeletedToDifferentPageTwice()
Definition: ActionTest.php:779
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\movePageToDifferentPageAndChangeSorting
‪movePageToDifferentPageAndChangeSorting()
Definition: ActionTest.php:789
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\createContentAndCopyContent
‪createContentAndCopyContent()
Definition: ActionTest.php:62
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\moveContentToDifferentPageAndChangeSorting
‪moveContentToDifferentPageAndChangeSorting()
Definition: ActionTest.php:346
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\AbstractActionTestCase
Definition: AbstractActionTestCase.php:24
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish
Definition: ActionTest.php:18
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\moveContentToDifferentPage
‪moveContentToDifferentPage()
Definition: ActionTest.php:327
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular\Publish\ActionTest\localizePage
‪localizePage()
Definition: ActionTest.php:573