2 namespace TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\ForeignField\Publish;
37 parent::createParentContent();
38 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
39 $this->assertAssertionDataSet(
'createParentContent');
41 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
42 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
43 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1'));
52 parent::modifyParentContent();
53 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
54 $this->assertAssertionDataSet(
'modifyParentContent');
56 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
57 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
58 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1'));
59 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
60 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
61 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
70 parent::deleteParentContent();
71 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
72 $this->assertAssertionDataSet(
'deleteParentContent');
74 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
75 $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
76 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Regular Element #2'));
85 parent::deleteParentContentAndDiscardDeletedParent();
87 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast,
false);
88 $this->assertAssertionDataSet(
'deleteParentContentNDiscardDeletedParent');
90 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
91 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
92 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Regular Element #2'));
101 parent::copyParentContent();
102 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
103 $this->assertAssertionDataSet(
'copyParentContent');
105 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
106 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
107 ->setRecordIdentifier(self::TABLE_Content .
':' . $this->recordIds[
'newContentId'])->setRecordField(self::FIELD_ContentHotel)
108 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
117 parent::copyParentContentToDifferentPage();
118 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
119 $this->assertAssertionDataSet(
'copyParentContentToDifferentPage');
121 $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections(
'Default',
'Extbase:list()');
122 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
123 ->setRecordIdentifier(self::TABLE_Content .
':' . $this->recordIds[
'newContentId'])->setRecordField(self::FIELD_ContentHotel)
124 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
133 parent::localizeParentContentInKeepMode();
134 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'localizedContentId']);
135 $this->assertAssertionDataSet(
'localizeParentContentKeep');
137 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
138 $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
139 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
140 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'[Translate to Dansk:] Hotel #1'));
149 parent::localizeParentContentWithAllChildrenInKeepMode();
150 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'localizedContentId']);
151 $this->assertAssertionDataSet(
'localizeParentContentWAllChildrenKeep');
153 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
154 $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
155 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
156 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'[Translate to Dansk:] Hotel #1'));
165 parent::localizeParentContentInSelectMode();
166 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'localizedContentId']);
167 $this->assertAssertionDataSet(
'localizeParentContentSelect');
169 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
170 $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
171 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
172 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'[Translate to Dansk:] Hotel #1'));
181 parent::localizeParentContentWithAllChildrenInSelectMode();
182 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'localizedContentId']);
183 $this->assertAssertionDataSet(
'localizeParentContentWAllChildrenSelect');
185 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
186 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
187 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
188 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'[Translate to Dansk:] Hotel #1'));
197 parent::changeParentContentSorting();
198 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
199 $this->assertAssertionDataSet(
'changeParentContentSorting');
201 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
202 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
203 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
204 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2'));
205 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
206 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
207 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
216 parent::moveParentContentToDifferentPage();
217 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
218 $this->assertAssertionDataSet(
'moveParentContentToDifferentPage');
220 $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections(
'Default',
'Extbase:list()');
221 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
222 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Regular Element #2'));
224 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
225 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
226 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
235 parent::moveParentContentToDifferentPageAndChangeSorting();
236 $this->actionService->publishRecords(
238 self::TABLE_Content => array(self::VALUE_ContentIdFirst, self::VALUE_ContentIdLast),
241 $this->assertAssertionDataSet(
'moveParentContentToDifferentPageNChangeSorting');
243 $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections(
'Default',
'Extbase:list()');
244 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
245 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Regular Element #2',
'Regular Element #1'));
246 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
247 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
248 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2'));
249 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
250 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
251 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
264 parent::modifyPage();
265 $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
266 $this->assertAssertionDataSet(
'modifyPage');
268 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
269 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
270 ->setTable(self::TABLE_Page)->setField(
'title')->setValues(
'Testing #1'));
271 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
272 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
273 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2'));
282 parent::deletePage();
283 $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
284 $this->assertAssertionDataSet(
'deletePage');
286 $response = $this->getFrontendResponse(self::VALUE_PageId, 0, 0, 0,
false);
287 $this->assertContains(
'PageNotFoundException',
$response->getError());
297 $this->actionService->publishRecords(
299 self::TABLE_Page => array($this->recordIds[
'newPageId']),
300 self::TABLE_Content => array($this->recordIds[
'newContentIdFirst'], $this->recordIds[
'newContentIdLast']),
303 $this->assertAssertionDataSet(
'copyPage');
305 $responseSections = $this->getFrontendResponse($this->recordIds[
'newPageId'], 0)->getResponseSections(
'Default',
'Extbase:list()');
306 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
307 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2',
'Hotel #1'));
316 parent::copyPageWithHotelBeforeParentContent();
317 $this->actionService->publishRecords(
319 self::TABLE_Page => array($this->recordIds[
'newPageId']),
320 self::TABLE_Content => array($this->recordIds[
'newContentIdFirst'], $this->recordIds[
'newContentIdLast']),
323 $this->assertAssertionDataSet(
'copyPageWHotelBeforeParentContent');
325 $responseSections = $this->getFrontendResponse($this->recordIds[
'newPageId'], 0)->getResponseSections(
'Default',
'Extbase:list()');
326 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
327 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2',
'Hotel #1'));
340 parent::createParentContentWithHotelAndOfferChildren();
341 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
342 $this->assertAssertionDataSet(
'createParentContentNHotelNOfferChildren');
344 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
345 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
346 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1'));
347 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
348 ->setRecordIdentifier(self::TABLE_Content .
':' . $this->recordIds[
'newContentId'])->setRecordField(self::FIELD_ContentHotel)
349 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
358 parent::createAndCopyParentContentWithHotelAndOfferChildren();
359 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
360 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'copiedContentId']);
361 $this->assertAssertionDataSet(
'createNCopyParentContentNHotelNOfferChildren');
363 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
364 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
365 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1 (copy 1)'));
366 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
367 ->setRecordIdentifier(self::TABLE_Content .
':' . $this->recordIds[
'newContentId'])->setRecordField(self::FIELD_ContentHotel)
368 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
369 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
370 ->setRecordIdentifier(self::TABLE_Content .
':' . $this->recordIds[
'copiedContentId'])->setRecordField(self::FIELD_ContentHotel)
371 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
372 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
373 ->setRecordIdentifier(self::TABLE_Hotel .
':' . $this->recordIds[
'copiedHotelId'])->setRecordField(self::FIELD_HotelOffer)
374 ->setTable(self::TABLE_Offer)->setField(
'title')->setValues(
'Offer #1'));
383 parent::createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent();
384 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
386 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'copiedContentId'],
false);
387 $this->assertAssertionDataSet(
'createNCopyParentContentNHotelNOfferChildrenNDiscardCopiedParent');
389 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
390 $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
391 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1 (copy 1)'));
400 parent::createAndLocalizeParentContentWithHotelAndOfferChildren();
401 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
402 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'localizedContentId']);
403 $this->assertAssertionDataSet(
'createNLocalizeParentContentNHotelNOfferChildren');
405 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
406 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
407 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'[Translate to Dansk:] Testing #1'));
408 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
409 ->setRecordIdentifier(self::TABLE_Content .
':' . $this->recordIds[
'newContentId'])->setRecordField(self::FIELD_ContentHotel)
410 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'[Translate to Dansk:] Hotel #1'));
411 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
412 ->setRecordIdentifier(self::TABLE_Hotel .
':' . $this->recordIds[
'newHotelId'])->setRecordField(self::FIELD_HotelOffer)
413 ->setTable(self::TABLE_Offer)->setField(
'title')->setValues(
'[Translate to Dansk:] Offer #1'));
422 parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent();
424 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId'],
false);
425 $this->assertAssertionDataSet(
'createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent');
427 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
428 $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
429 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1',
'[Translate to Dansk:] Testing #1'));
438 parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent();
439 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'newContentId']);
441 $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds[
'localizedContentId'],
false);
442 $this->assertAssertionDataSet(
'createNLocalizeParentContentNHotelNOfferChildrenNDiscardLocalizedParent');
444 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(
'Default',
'Extbase:list()');
445 $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
446 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'[Translate to Dansk:] Testing #1'));
455 parent::modifyOnlyHotelChild();
456 $this->actionService->publishRecord(self::TABLE_Hotel, 4);
457 $this->assertAssertionDataSet(
'modifyOnlyHotelChild');
459 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
460 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
461 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
462 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Testing #1'));
471 parent::modifyParentAndChangeHotelChildrenSorting();
472 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
473 $this->assertAssertionDataSet(
'modifyParentNChangeHotelChildrenSorting');
475 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
476 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
477 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
478 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #2',
'Hotel #1'));
487 parent::modifyParentWithHotelChild();
488 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
489 $this->assertAssertionDataSet(
'modifyParentNHotelChild');
491 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
492 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
493 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
494 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Testing #1'));
503 parent::modifyParentWithHotelChildAndDiscardModifiedParent();
505 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst,
false);
506 $this->assertAssertionDataSet(
'modifyParentNHotelChildNDiscardModifiedParent');
508 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
509 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
510 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Regular Element #1'));
513 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
514 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
515 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2'));
516 $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
517 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
518 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Testing #1'));
527 parent::modifyParentWithHotelChildAndDiscardAll();
529 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst,
false);
530 $this->assertAssertionDataSet(
'modifyParentNHotelChildNDiscardAll');
532 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
533 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
534 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Regular Element #1'));
535 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
536 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
537 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2'));
546 parent::modifyParentAndAddHotelChild();
547 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
548 $this->assertAssertionDataSet(
'modifyParentNAddHotelChild');
550 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
551 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
552 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
553 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1',
'Hotel #2'));
562 parent::modifyParentAndDeleteHotelChild();
563 $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
564 $this->assertAssertionDataSet(
'modifyParentNDeleteHotelChild');
566 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(
'Default',
'Extbase:list()');
567 $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
568 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
569 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #1'));
570 $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
571 ->setRecordIdentifier(self::TABLE_Content .
':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
572 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Hotel #2'));
581 parent::modifyAndDiscardAndModifyParentWithHotelChild();
582 $this->actionService->publishRecords(
584 self::TABLE_Content => array(self::VALUE_ContentIdFirst),
585 self::TABLE_Hotel => array(3, 4),
588 $this->assertAssertionDataSet(
'modifyNDiscardNModifyParentWHotelChild');
590 $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections(
'Default',
'Extbase:list()');
591 $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
592 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #1'));
593 $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
594 ->setTable(self::TABLE_Hotel)->setField(
'header')->setValues(
'Testing #1'));
595 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
596 ->setTable(self::TABLE_Content)->setField(
'header')->setValues(
'Testing #2'));
597 $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
598 ->setTable(self::TABLE_Hotel)->setField(
'title')->setValues(
'Testing #2'));