/** * @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')); }
/** * @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')); }
/** * @test * @see DataSet/createPlaceholdersAndDeleteLiveParentPage.csv */ public function createPlaceholdersAndDeleteLiveParentPage() { parent::createPlaceholdersAndDeleteLiveParentPage(); $this->actionService->publishWorkspace(self::VALUE_WorkspaceId); $this->assertAssertionDataSet('createPlaceholdersAndDeleteLiveParentPage'); }
/** * @test * @see DataSet/createPlaceholdersAndDeleteLiveParentPage.csv */ public function createPlaceholdersAndDeleteLiveParentPage() { parent::createPlaceholdersAndDeleteLiveParentPage(); $this->assertAssertionDataSet('createPlaceholdersAndDeleteLiveParentPage'); }
/** * @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')); }
/** * @test * @see DataSet/createPlaceholdersAndDeleteDraftParentPage.csv */ public function createPlaceholdersAndDeleteDraftParentPage() { parent::createPlaceholdersAndDeleteDraftParentPage(); $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_ParentPageId); $this->assertAssertionDataSet('createPlaceholdersAndDeleteDraftParentPage'); }