コード例 #1
0
ファイル: ActionTest.php プロジェクト: rickymathew/TYPO3.CMS
 /**
  * @test
  * @see DataSet/Assertion/createAndCopyParentContentRecordWithHotelAndOfferChildRecordsAndDiscardCopiedParentRecord.csv
  */
 public function createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent()
 {
     parent::createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent();
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
     // Actually this is not required, since there's nothing to publish... but it's a test case!
     $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId'], false);
     $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildrenNDiscardCopiedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
 }
コード例 #2
0
ファイル: ActionTest.php プロジェクト: graurus/testgit_t37
 /**
  * @test
  * @see DataSet/Assertion/createAndCopyParentContentRecordWithHotelAndOfferChildRecordsAndDiscardCopiedParentRecord.csv
  */
 public function createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent()
 {
     parent::createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent();
     $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
     $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildrenNDiscardCopiedParent');
     $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
     $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
 }