/** * @test * @see DataSet/Assertion/modifyParentRecordWithHotelChildRecordAndDiscardAllModifiedRecords.csv */ public function modifyParentWithHotelChildAndDiscardAll() { parent::modifyParentWithHotelChildAndDiscardAll(); // Actually this is not required, since there's nothing to publish... but it's a test case! $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, false); $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardAll'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1')); $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2')); }
/** * @test * @see DataSet/Assertion/modifyParentRecordWithHotelChildRecordAndDiscardAllModifiedRecords.csv */ public function modifyParentWithHotelChildAndDiscardAll() { parent::modifyParentWithHotelChildAndDiscardAll(); $this->actionService->publishWorkspace(self::VALUE_WorkspaceId); $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardAll'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1')); $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2')); }