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