/** * @test * @see DataSet/Assertion/copyPageWHotelBeforeParentContent.csv */ public function copyPageWithHotelBeforeParentContent() { parent::copyPageWithHotelBeforeParentContent(); $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent'); $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1')); }
/** * @test * @see DataSet/Assertion/copyPageWHotelBeforeParentContent.csv */ public function copyPageWithHotelBeforeParentContent() { parent::copyPageWithHotelBeforeParentContent(); $this->actionService->publishRecords(array(self::TABLE_Page => array($this->recordIds['newPageId']), self::TABLE_Content => array($this->recordIds['newContentIdFirst'], $this->recordIds['newContentIdLast']))); $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent'); $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections('Default', 'Extbase:list()'); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1')); }