/** * @test * @see DataSet/Assertion/changeContentRecordSorting.csv */ public function changeContentSorting() { parent::changeContentSorting(); $this->assertAssertionDataSet('changeContentSorting'); $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('Regular Element #1', 'Regular Element #2')); }
/** * @test * @see DataSet/Assertion/changeContentRecordSorting.csv */ public function changeContentSorting() { parent::changeContentSorting(); $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst); $this->assertAssertionDataSet('changeContentSorting'); $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections(); $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1', 'Regular Element #2')); }