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