Ejemplo n.º 1
0
 /**
  * @test
  * @see DataSet/Assertion/copyPageWHotelBeforeParentContent.csv
  */
 public function copyPageWithHotelBeforeParentContent()
 {
     parent::copyPageWithHotelBeforeParentContent();
     $this->actionService->publishRecords(array(self::TABLE_Page => array($this->recordIds['newPageId']), self::TABLE_Content => array($this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast'])));
     $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent');
     $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @see DataSet/Assertion/copyPageWHotelBeforeParentContent.csv
  */
 public function copyPageWithHotelBeforeParentContent()
 {
     parent::copyPageWithHotelBeforeParentContent();
     $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
     $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent');
     $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
 }