/** * @test * @see DataSet/Assertion/copyParentContentRecord.csv */ public function copyParentContent() { parent::copyParentContent(); $this->assertAssertionDataSet('copyParentContent'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 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')); }
/** * @test * @see DataSet/Assertion/copyParentContentRecord.csv */ public function copyParentContent() { parent::copyParentContent(); $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']); $this->assertAssertionDataSet('copyParentContent'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 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')); }