/** * @test * @see DataSet/deleteContentAndCopyLivePage.csv */ public function deleteContentAndCopyLivePage() { parent::deleteContentAndCopyLivePage(); $this->assertAssertionDataSet('deleteContentAndCopyLivePage'); $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections(); $this->assertThat($responseSectionsLive, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2')); $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, static::VALUE_BackendUserId, static::VALUE_WorkspaceId)->getResponseSections(); $this->assertThat($responseSectionsDraft, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2')); }