We have moved to GitHub Issues
Created by Damiaan Peeters 10 Sep 2015, 16:01:37 Updated by Damiaan Peeters 11 Sep 2015, 07:08:29
I am writing some unittests. My controller is returning an RedirectToUmbracoPageResult.
I would like to verify to verify the Id of the Contentpage being returned. But due to unavailability of the UmbracoContext (or HttpContext), all public properties (PublishedContent and Url) are returning exceptions.
There is however an internal field containing the ID. To make my unittests succesful, I would like to see this field being exposes to the world (by a getter).
for reference: https://github.com/umbraco/Umbraco-CMS/pull/788
Difficulty: Very Easy
Backwards Compatible: True
Fix Submitted: Pull request
Due in version: 7.3.0