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