/** * @test * @see DataSet/Assertion/copyPageRecord.csv */ public function copyPage() { parent::copyPage(); $this->assertAssertionDataSet('copyPage'); $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Relations')); }
/** * @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_Page)->setField('title')->setValues('Relations')); }