コード例 #1
0
ファイル: ActionTest.php プロジェクト: rickymathew/TYPO3.CMS
 /**
  * @test
  * @see DataSet/Assertion/createParentContentRecord.csv
  */
 public function createParentContent()
 {
     parent::createParentContent();
     $this->assertAssertionDataSet('createParentContent');
     $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'));
 }
コード例 #2
0
ファイル: ActionTest.php プロジェクト: rickymathew/TYPO3.CMS
 /**
  * @test
  * @see DataSet/Assertion/createParentContentRecord.csv
  */
 public function createParentContent()
 {
     parent::createParentContent();
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
     $this->assertAssertionDataSet('createParentContent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
 }