‪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 
42  public function ‪createParentContent(): void
43  {
44  parent::createParentContent();
45  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
46  $this->assertCSVDataSet(__DIR__ . '/DataSet/createParentContent.csv');
47 
48  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
49  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
50  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
51  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
52  }
53 
57  public function ‪modifyParentContent(): void
58  {
59  parent::modifyParentContent();
60  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
61  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyParentContent.csv');
62 
63  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
64  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
65  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
66  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
67  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
68  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
69  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
70  }
71 
75  public function ‪deleteParentContent(): void
76  {
77  parent::deleteParentContent();
78  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
79  $this->assertCSVDataSet(__DIR__ . '/DataSet/deleteParentContent.csv');
80 
81  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
82  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
83  self::assertThat($responseSections, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
84  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
85  }
86 
90  public function ‪copyParentContent(): void
91  {
92  parent::copyParentContent();
93  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
94  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyParentContent.csv');
95 
96  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
97  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
98  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
99  ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
100  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
101  }
102 
106  public function ‪copyParentContentToDifferentPage(): void
107  {
108  parent::copyParentContentToDifferentPage();
109  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
110  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyParentContentToDifferentPage.csv');
111 
112  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdTarget));
113  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
114  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
115  ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
116  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
117  }
118 
123  {
124  // Create and publish translated page first
125  $translatedPageResult = $this->actionService->copyRecordToLanguage(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
126  $this->actionService->publishRecord(self::TABLE_Page, $translatedPageResult[self::TABLE_Page][self::VALUE_PageId]);
127  parent::localizeParentContentWithAllChildren();
128  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
129  $this->assertCSVDataSet(__DIR__ . '/DataSet/localizeParentContentWAllChildren.csv');
130 
131  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId));
132  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
133  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
134  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
135  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
136  }
137 
141  public function ‪changeParentContentSorting(): void
142  {
143  parent::changeParentContentSorting();
144  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
145  $this->assertCSVDataSet(__DIR__ . '/DataSet/changeParentContentSorting.csv');
146 
147  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
148  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
149  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
150  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
151  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
152  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
153  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
154  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
155  }
156 
160  public function ‪moveParentContentToDifferentPage(): void
161  {
162  parent::moveParentContentToDifferentPage();
163  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
164  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveParentContentToDifferentPage.csv');
165 
166  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdTarget));
167  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
168  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
169  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
170  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
171  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
172  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
173  }
174 
179  {
180  parent::moveParentContentToDifferentPageTwice();
181  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
182  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveParentContentToDifferentPageTwice.csv');
183  }
184 
189  {
190  parent::moveParentContentToDifferentPageAndChangeSorting();
191  $this->actionService->publishRecords([
192  self::TABLE_Content => [self::VALUE_ContentIdFirst, self::VALUE_ContentIdLast],
193  ]);
194  $this->assertCSVDataSet(__DIR__ . '/DataSet/moveParentContentToDifferentPageNChangeSorting.csv');
195 
196  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageIdTarget));
197  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
198  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
199  ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #1'));
200  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
201  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
202  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
203  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
204  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
205  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
206  }
207 
215  public function ‪modifyPage(): void
216  {
217  parent::modifyPage();
218  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
219  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyPage.csv');
220 
221  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
222  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
223  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
224  ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
225  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
226  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
227  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
228  }
229 
233  public function ‪deletePage(): void
234  {
235  parent::deletePage();
236  $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
237  $this->assertCSVDataSet(__DIR__ . '/DataSet/deletePage.csv');
238 
239  $response = $this->executeFrontendSubRequest(
240  (new InternalRequest())->withPageId(self::VALUE_PageId)
241  );
242  self::assertEquals(404, $response->getStatusCode());
243  }
244 
248  public function ‪copyPage(): void
249  {
250  parent::copyPage();
251  $this->actionService->publishRecords([
252  self::TABLE_Page => [$this->recordIds['newPageId']],
253  self::TABLE_Content => [$this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast']],
254  ]);
255  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyPage.csv');
256 
257  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId($this->recordIds['newPageId']));
258  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
259  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
260  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
261  }
262 
267  {
268  parent::copyPageWithHotelBeforeParentContent();
269  $this->actionService->publishRecords(
270  [
271  self::TABLE_Page => [$this->recordIds['newPageId']],
272  self::TABLE_Content => [$this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast']],
273  ]
274  );
275  $this->assertCSVDataSet(__DIR__ . '/DataSet/copyPageWHotelBeforeParentContent.csv');
276 
277  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId($this->recordIds['newPageId']));
278  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
279  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
280  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
281  }
282 
291  {
292  parent::createParentContentWithHotelAndOfferChildren();
293  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
294  $this->assertCSVDataSet(__DIR__ . '/DataSet/createParentContentNHotelNOfferChildren.csv');
295 
296  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
297  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
298  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
299  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
300  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
301  ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
302  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
303  }
304 
309  {
310  parent::createAndCopyParentContentWithHotelAndOfferChildren();
311  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
312  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId']);
313  $this->assertCSVDataSet(__DIR__ . '/DataSet/createNCopyParentContentNHotelNOfferChildren.csv');
314 
315  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
316  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
317  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
318  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
319  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
320  ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
321  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
322  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
323  ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['copiedContentId'])->setRecordField(self::FIELD_ContentHotel)
324  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
325  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
326  ->setRecordIdentifier(self::TABLE_Hotel . ':' . $this->recordIds['copiedHotelId'])->setRecordField(self::FIELD_HotelOffer)
327  ->setTable(self::TABLE_Offer)->setField('title')->setValues('Offer #1'));
328  }
329 
334  {
335  // Create and publish translated page first
336  $translatedPageResult = $this->actionService->copyRecordToLanguage(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
337  $this->actionService->publishRecord(self::TABLE_Page, $translatedPageResult[self::TABLE_Page][self::VALUE_PageId]);
338  parent::createAndLocalizeParentContentWithHotelAndOfferChildren();
339  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
340  $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
341  $this->assertCSVDataSet(__DIR__ . '/DataSet/createNLocalizeParentContentNHotelNOfferChildren.csv');
342 
343  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId)->withLanguageId(self::VALUE_LanguageId));
344  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
345  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
346  ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
347  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
348  ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
349  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
350  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
351  ->setRecordIdentifier(self::TABLE_Hotel . ':' . $this->recordIds['localizedHotelId'])->setRecordField(self::FIELD_HotelOffer)
352  ->setTable(self::TABLE_Offer)->setField('title')->setValues('[Translate to Dansk:] Offer #1'));
353  }
354 
358  public function ‪modifyOnlyHotelChild(): void
359  {
360  parent::modifyOnlyHotelChild();
361  $this->actionService->publishRecord(self::TABLE_Hotel, 4);
362  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyOnlyHotelChild.csv');
363 
364  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
365  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
366  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
367  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
368  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
369  }
370 
375  {
376  parent::modifyParentAndChangeHotelChildrenSorting();
377  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
378  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyParentNChangeHotelChildrenSorting.csv');
379 
380  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
381  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
382  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
383  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
384  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #2', 'Hotel #1'));
385  }
386 
390  public function ‪modifyParentWithHotelChild(): void
391  {
392  parent::modifyParentWithHotelChild();
393  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
394  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyParentNHotelChild.csv');
395 
396  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
397  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
398  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
399  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
400  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
401  }
402 
406  public function ‪modifyParentAndAddHotelChild(): void
407  {
408  parent::modifyParentAndAddHotelChild();
409  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
410  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyParentNAddHotelChild.csv');
411 
412  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
413  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
414  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
415  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
416  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
417  }
418 
422  public function ‪modifyParentAndDeleteHotelChild(): void
423  {
424  parent::modifyParentAndDeleteHotelChild();
425  $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
426  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyParentNDeleteHotelChild.csv');
427 
428  $response = $this->executeFrontendSubRequest((new InternalRequest())->withPageId(self::VALUE_PageId));
429  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
430  self::assertThat($responseSections, $this->‪getRequestSectionStructureHasRecordConstraint()
431  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
432  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
433  self::assertThat($responseSections, $this->‪getRequestSectionStructureDoesNotHaveRecordConstraint()
434  ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
435  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #2'));
436  }
437 
442  {
443  parent::modifyAndDiscardAndModifyParentWithHotelChild();
444  $this->actionService->publishRecords([
445  self::TABLE_Content => [self::VALUE_ContentIdFirst],
446  self::TABLE_Hotel => [3, 4],
447  ]);
448  $this->assertCSVDataSet(__DIR__ . '/DataSet/modifyNDiscardNModifyParentWHotelChild.csv');
449 
450  $response = $this->executeFrontendSubRequest(
451  (new InternalRequest())->withPageId(self::VALUE_PageId),
452  (new InternalRequestContext())->withBackendUserId(self::VALUE_BackendUserId)->withWorkspaceId(self::VALUE_WorkspaceId)
453  );
454  $responseSections = ResponseContent::fromString((string)$response->getBody())->getSections();
455  self::assertThat($responseSections, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
456  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
457  self::assertThat($responseSections, $this->‪getRequestSectionDoesNotHaveRecordConstraint()
458  ->setTable(self::TABLE_Hotel)->setField('header')->setValues('Testing #1'));
459  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
460  ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #2'));
461  self::assertThat($responseSections, $this->‪getRequestSectionHasRecordConstraint()
462  ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Testing #2'));
463  }
464 }
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\copyParentContent
‪copyParentContent()
Definition: ActionTest.php:90
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyParentWithHotelChild
‪modifyParentWithHotelChild()
Definition: ActionTest.php:390
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionHasRecordConstraint
‪HasRecordConstraint getRequestSectionHasRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:245
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionStructureHasRecordConstraint
‪StructureHasRecordConstraint getRequestSectionStructureHasRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:261
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\createParentContent
‪createParentContent()
Definition: ActionTest.php:42
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\localizeParentContentWithAllChildren
‪localizeParentContentWithAllChildren()
Definition: ActionTest.php:122
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\copyPageWithHotelBeforeParentContent
‪copyPageWithHotelBeforeParentContent()
Definition: ActionTest.php:266
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyParentContent
‪modifyParentContent()
Definition: ActionTest.php:57
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\moveParentContentToDifferentPageAndChangeSorting
‪moveParentContentToDifferentPageAndChangeSorting()
Definition: ActionTest.php:188
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\createAndCopyParentContentWithHotelAndOfferChildren
‪createAndCopyParentContentWithHotelAndOfferChildren()
Definition: ActionTest.php:308
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\deleteParentContent
‪deleteParentContent()
Definition: ActionTest.php:75
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionStructureDoesNotHaveRecordConstraint
‪StructureDoesNotHaveRecordConstraint getRequestSectionStructureDoesNotHaveRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:269
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyParentAndDeleteHotelChild
‪modifyParentAndDeleteHotelChild()
Definition: ActionTest.php:422
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\moveParentContentToDifferentPageTwice
‪moveParentContentToDifferentPageTwice()
Definition: ActionTest.php:178
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyOnlyHotelChild
‪modifyOnlyHotelChild()
Definition: ActionTest.php:358
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\moveParentContentToDifferentPage
‪moveParentContentToDifferentPage()
Definition: ActionTest.php:160
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\copyParentContentToDifferentPage
‪copyParentContentToDifferentPage()
Definition: ActionTest.php:106
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest
Definition: ActionTest.php:29
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyParentAndAddHotelChild
‪modifyParentAndAddHotelChild()
Definition: ActionTest.php:406
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\getRequestSectionDoesNotHaveRecordConstraint
‪DoesNotHaveRecordConstraint getRequestSectionDoesNotHaveRecordConstraint()
Definition: AbstractDataHandlerActionTestCase.php:253
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyPage
‪modifyPage()
Definition: ActionTest.php:215
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\AbstractActionTestCase
Definition: AbstractActionTestCase.php:24
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\deletePage
‪deletePage()
Definition: ActionTest.php:233
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish
Definition: ActionTest.php:18
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\copyPage
‪copyPage()
Definition: ActionTest.php:248
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyParentAndChangeHotelChildrenSorting
‪modifyParentAndChangeHotelChildrenSorting()
Definition: ActionTest.php:374
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\createParentContentWithHotelAndOfferChildren
‪createParentContentWithHotelAndOfferChildren()
Definition: ActionTest.php:290
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\modifyAndDiscardAndModifyParentWithHotelChild
‪modifyAndDiscardAndModifyParentWithHotelChild()
Definition: ActionTest.php:441
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\verifyCleanReferenceIndex
‪verifyCleanReferenceIndex()
Definition: ActionTest.php:33
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\changeParentContentSorting
‪changeParentContentSorting()
Definition: ActionTest.php:141
‪TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV\Publish\ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildren
‪createAndLocalizeParentContentWithHotelAndOfferChildren()
Definition: ActionTest.php:333