Exemplo n.º 1
0
 /**
  * @test
  * @see DataSet/Assertion/createAndLocalizeParentContentRecordWithHotelAndOfferChildRecordsAndDiscardLocalizedParentRecord.csv
  */
 public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent()
 {
     parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent();
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
     // Actually this is not required, since there's nothing to publish... but it's a test case!
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId'], false);
     $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardLocalizedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
 }
Exemplo n.º 2
0
 /**
  * @test
  * @see DataSet/Assertion/createAndLocalizeParentContentRecordWithHotelAndOfferChildRecordsAndDiscardLocalizedParentRecord.csv
  */
 public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent()
 {
     parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent();
     $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
     $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardLocalizedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
 }