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