示例#1
0
 /**
  * @test
  * @see DataSet/copyParentContentToDifferentPage.csv
  */
 public function copyParentContentToDifferentPage()
 {
     parent::copyParentContentToDifferentPage();
     $this->assertAssertionDataSet('copyParentContentToDifferentPage');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
 }
示例#2
0
 /**
  * @test
  * @see DataSet/copyParentContentToDifferentPage.csv
  */
 public function copyParentContentToDifferentPage()
 {
     parent::copyParentContentToDifferentPage();
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
     $this->assertAssertionDataSet('copyParentContentToDifferentPage');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
     $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
 }