/** * @test * @see DataSet/Assertion/copyPageRecord.csv */ public function copyPage() { parent::copyPage(); $this->actionService->publishRecords(array(self::TABLE_Page => array($this->recordIds['newPageId']), self::TABLE_Content => array($this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast']))); $this->assertAssertionDataSet('copyPage'); $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')); }
/** * @test * @see DataSet/Assertion/copyPageRecord.csv */ public function copyPage() { parent::copyPage(); $this->actionService->publishWorkspace(self::VALUE_WorkspaceId); $this->assertAssertionDataSet('copyPage'); $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')); }