コード例 #1
0
ファイル: ActionTest.php プロジェクト: Torsten85/TYPO3.CMS
 /**
  * @test
  * @see DataSet/createNestedPagesAndCopyParentPage.csv
  */
 public function createNestedPagesAndCopyLiveParentPage()
 {
     parent::createNestedPagesAndCopyLiveParentPage();
     $this->assertAssertionDataSet('createNestedPagesAndCopyLiveParentPage');
     //        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
     //        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
     //            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
     //        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, static::VALUE_BackendUserId, static::VALUE_WorkspaceId)->getResponseSections();
     //        $this->assertThat($responseSectionsDraft, $this->getRequestSectionDoesNotHaveRecordConstraint()
     //            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
 }
コード例 #2
0
	/**
	 * @test
	 * @see DataSet/Assertion/movePageRecordToDifferentPageAndCreatePageRecordAfterMovedPageRecord.csv
	 * @see http://forge.typo3.org/issues/33104
	 * @see http://forge.typo3.org/issues/55573
	 */
	public function movePageToDifferentPageAndCreatePageAfterMovedPage() {
		parent::movePageToDifferentPageAndCreatePageAfterMovedPage();
		$this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
		$this->assertAssertionDataSet('movePageToDifferentPageNCreatePageAfterMovedPage');

		$responseSections = $this->getFrontendResponse(self::VALUE_PageIdWebsite, 0)->getResponseSections();
		$this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
			->setRecordIdentifier(self::TABLE_Page . ':' . self::VALUE_PageIdWebsite)->setRecordField('__pages')
			->setTable(self::TABLE_Page)->setField('title')->setValues('Target', 'Testing #1', 'DataHandlerTest'));
	}
コード例 #3
0
 /**
  * @test
  * @see DataSet/createPlaceholdersAndDeleteLiveParentPage.csv
  */
 public function createPlaceholdersAndDeleteLiveParentPage()
 {
     parent::createPlaceholdersAndDeleteLiveParentPage();
     $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
     $this->assertAssertionDataSet('createPlaceholdersAndDeleteLiveParentPage');
 }
コード例 #4
0
ファイル: ActionTest.php プロジェクト: khanhdeux/typo3test
 /**
  * @test
  * @see DataSet/createPlaceholdersAndDeleteLiveParentPage.csv
  */
 public function createPlaceholdersAndDeleteLiveParentPage()
 {
     parent::createPlaceholdersAndDeleteLiveParentPage();
     $this->assertAssertionDataSet('createPlaceholdersAndDeleteLiveParentPage');
 }
コード例 #5
0
ファイル: ActionTest.php プロジェクト: simonschaufi/TYPO3.CMS
 /**
  * @test
  * @see DataSet/moveContentAndCopyLivePage.csv
  */
 public function moveContentAndCopyLivePage()
 {
     parent::moveContentAndCopyLivePage();
     $this->assertAssertionDataSet('moveContentAndCopyLivePage');
     $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
     $this->assertThat($responseSectionsLive, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
     $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #0'));
     $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, static::VALUE_BackendUserId, static::VALUE_WorkspaceId)->getResponseSections();
     $this->assertThat($responseSectionsDraft, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
     $this->assertThat($responseSectionsDraft, $this->getRequestSectionDoesNotHaveRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #0'));
 }
コード例 #6
0
ファイル: ActionTest.php プロジェクト: khanhdeux/typo3test
 /**
  * @test
  * @see DataSet/createPlaceholdersAndDeleteDraftParentPage.csv
  */
 public function createPlaceholdersAndDeleteDraftParentPage()
 {
     parent::createPlaceholdersAndDeleteDraftParentPage();
     $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_ParentPageId);
     $this->assertAssertionDataSet('createPlaceholdersAndDeleteDraftParentPage');
 }