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