Ejemplo n.º 1
0
 /**
  * @test
  * @see DataSet/Assertion/createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv
  */
 public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent()
 {
     parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent();
     $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', '[Translate to Dansk:] Testing #1'));
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @see DataSet/Assertion/createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv
  */
 public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent()
 {
     parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent();
     // 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['newContentId'], FALSE);
     $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', '[Translate to Dansk:] Testing #1'));
 }