/** * @test * @see DataSet/Assertion/createAndLocalizeParentContentRecordWithHotelAndOfferChildRecords.csv */ public function createAndLocalizeParentContentWithHotelAndOfferChildren() { parent::createAndLocalizeParentContentWithHotelAndOfferChildren(); $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']); $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']); $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildren'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1')); $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1')); $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()->setRecordIdentifier(self::TABLE_Hotel . ':' . $this->recordIds['localizedHotelId'])->setRecordField(self::FIELD_HotelOffer)->setTable(self::TABLE_Offer)->setField('title')->setValues('[Translate to Dansk:] Offer #1')); }