/** * @test * @see DataSet/Assertion/copyContentRecord.csv */ public function copyContent() { parent::copyContent(); $this->assertAssertionDataSet('copyContent'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2 (copy 1)')); }
/** * @test * @see DataSet/Assertion/copyContentRecord.csv */ public function copyContent() { parent::copyContent(); $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId']); $this->assertAssertionDataSet('copyContent'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2 (copy 1)')); }