/** * @test * @see DataSet/createPageAndCopyDraftParentPage.csv */ public function createPageAndCopyDraftParentPage() { parent::createPageAndCopyDraftParentPage(); $this->assertAssertionDataSet('createPageAndCopyDraftParentPage'); $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections(); $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1')); $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections(); $this->assertThat($responseSectionsDraft, $this->getRequestSectionHasRecordConstraint()->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1')); }