コード例 #1
0
ファイル: ActionTest.php プロジェクト: Mr-Robota/TYPO3.CMS
 /**
  * @test
  * @see DataSet/Assertion/modifyParentRecordAndAddHotelChildRecord.csv
  */
 public function modifyParentAndAddHotelChild()
 {
     parent::modifyParentAndAddHotelChild();
     $this->assertAssertionDataSet('modifyParentNAddHotelChild');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
 }
コード例 #2
0
ファイル: ActionTest.php プロジェクト: plan2net/TYPO3.CMS
 /**
  * @test
  * @see DataSet/Assertion/modifyParentRecordAndAddHotelChildRecord.csv
  */
 public function modifyParentAndAddHotelChild()
 {
     parent::modifyParentAndAddHotelChild();
     $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
     $this->assertAssertionDataSet('modifyParentNAddHotelChild');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
 }