Exemple #1
0
 /**
  * @test
  * @see DataSet/Assertion/createContentRecords.csv
  */
 public function createContents()
 {
     parent::createContents();
     $this->assertAssertionDataSet('createContents');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', 'Testing #2'));
 }
Exemple #2
0
 /**
  * @test
  * @see DataSet/Assertion/createContentRecords.csv
  */
 public function createContents()
 {
     parent::createContents();
     $this->actionService->publishRecords(array(self::TABLE_Content => array($this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast'])));
     $this->assertAssertionDataSet('createContents');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', 'Testing #2'));
 }