Exemple #1
0
 /**
  * @test
  * @see DataSet/Assertion/createPageRecord.csv
  */
 public function createPage()
 {
     parent::createPage();
     $this->assertAssertionDataSet('createPage');
     $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
 }
Exemple #2
0
 /**
  * @test
  * @see DataSet/Assertion/createPageRecord.csv
  */
 public function createPage()
 {
     parent::createPage();
     $this->actionService->publishRecord(self::TABLE_Page, $this->recordIds['newPageId']);
     $this->assertAssertionDataSet('createPage');
     $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
 }