Shannon Deminick
89b85bcf4b
Fixed Render route handler tests.
2013-02-20 06:30:06 +06:00
Stephan
2d336fde73
Tests - cleanup settings handling for more reliable tests
2013-02-19 10:07:22 -01:00
Shannon Deminick
9324ab8e0e
Merge with 6.0.1
2013-02-19 04:11:30 +06:00
Shannon Deminick
e921dca9d6
Fixed up more unit tests and issue with publishing logic.
2013-02-15 20:53:44 +06:00
Shannon Deminick
9ad813d990
Fixes a couple issues with some routing tests.
2013-02-15 19:38:33 +06:00
Shannon Deminick
3b25214433
Adds new database table + migration + unit test + fixes up unit tests to ensure PluginManager.Current = null; is done on teardown.
...
Created new ServerRegistrationRepository + unit tests + models
2013-02-13 03:29:32 +06:00
Stephan
571849f211
Tests.Routing - fix RenderRouteHandlerTests
2013-02-07 20:27:46 -01:00
Shannon Deminick
3608242b25
Merge with 4.11.4
2013-02-01 06:22:28 +06:00
Stephan
56281d64b0
Tests.Routing - fix tests that were failing
...
due to Models.ITemplate, Resolution, database constraints...
2013-01-30 14:46:38 -01:00
Stephan
cc0ad0b089
Web.Routing - PublishedContentRequest template naming
2013-02-05 06:37:36 -01:00
Shannon Deminick
6b3de00e08
Merge with 6.0.1
2013-02-01 06:52:27 +06:00
Stephan
a94f3b6211
Web - RoutesCache belongs to RoutingContext
2013-01-30 14:45:13 -01:00
Shannon Deminick
30fe0ecaf4
Fixes unit tests and logic for Umbraco_Route_User_Defined_Controller_Action
2013-01-30 05:55:40 +06:00
Stephan
09f50da821
Web.Routing - migrate to Models.ITemplate, cleanup template logic
2013-01-28 18:36:58 -01:00
Shannon Deminick
a734a0cff7
Fixes unit tests for Umbraco_Route_User_Defined_Controller_Action
2013-01-30 05:37:32 +06:00
Stephan
f466bc7cfb
Web.Routing - cleanup PublishedContentRequest
2013-01-23 14:08:17 -01:00
Stephan
73df3ec0de
Tests.Routing - get all tests to pass
2013-01-23 09:41:00 -01:00
Stephan
38593ea36c
Tests.Routing - rename some tests
2013-01-23 09:41:00 -01:00
Stephan
e5a20f0c1b
Web.Routing - rename things
2013-01-18 13:20:08 -01:00
Stephan
9d701cabf6
Web.Routing - sanitize PublishedContentRequest & pipeline
2013-01-18 13:13:06 -01:00
Sebastiaan Janssen
f947d05582
Use the NUnit workaround, like for v4 and ignore test that have been failing for
...
a long time now
2013-01-16 17:11:13 -01:00
Stephan
c6c522da04
Web.Routing - begin sanitizing PublishedContentRequest
2013-01-16 15:01:43 -01:00
Stephan
2251f39fcf
Web.Routing - naming & cleanup, prepare for going public
2013-01-16 14:45:04 -01:00
Sebastiaan Janssen
72099192b5
My bad, teamcity wasn't building the test project before running tests :)
2013-01-16 17:01:00 -01:00
Sebastiaan Janssen
ea48128869
The nunit console runner is being such a tease, ignoring the [Ignore] attribute
2013-01-16 16:44:50 -01:00
Sebastiaan Janssen
f0b22146c8
Ignore tests that have been failing for AGES
2013-01-16 16:31:15 -01:00
Morten Christensen
602e9c6d7e
Adding trailing slash to failing routing tests.
...
The issue with these tests might again be because of the UmbracoSettings file, which has the trailing slash setting. But with the settings being reset after teardown the tests were still failing, so made these minor corrections which shoudl correspond to the default setting.
2012-12-29 18:22:51 -01:00
Sebastiaan Janssen
4f373541ac
Accidentally added TWO RequiredDbSetup properties
2012-12-03 11:57:28 -01:00
Sebastiaan Janssen
bbd88be00b
LookupByAliasTests didn't require a DB after all
2012-11-30 08:00:04 -01:00
Sebastiaan Janssen
40e7b9bc0a
Fix the DB creation and population (tested only on SQL CE so far)
2012-12-03 11:49:09 -01:00
Morten Christensen
a5344b4087
Ensure UmbracoSettings are reset between tests
2012-11-30 10:06:17 -01:00
Sebastiaan Janssen
fbd8884944
Fix routing tests, we DO need a database for these
2012-11-29 17:10:41 -01:00
Morten Christensen
2f83e5ba31
Fixing a few broken unit tests
2012-11-29 13:05:51 -01:00
Morten Christensen
0ae707fe78
Refactoring the umbraco version from GlobalSettings to be a seperate class that simply wraps the version from the assembly.
...
Since the version will come from the assembly there is no need to have it as part of the GlobalSetting, which is internal and needs a makeover of its own.
2012-11-26 11:18:06 -01:00
Morten Christensen
4cc20efa08
Refactoring usages of CurrentVersion to use Version in GlobalSettings.
...
Completes U4-1160
2012-11-26 10:07:08 -01:00
Morten Christensen
c7693386a2
Correcting a few unit tests after conditions have changed.
2012-11-23 08:35:58 -01:00
Shannon Deminick
07f8f79620
Fixes: #U4-1077, found an bug with both our code and Microsoft's code in that if you RemapPath with an incorrect URL which contains
...
2 '?' the internals of ASP.net actually force a secondary internal request which causes BeginRequest to fire but doesn't follow the normal
chain of the module. It was a bug with our code having two query strings, however its pretty strange behavior on their part!
Have removed UmbracoContext.ClientUrl since it is not necessary to have. Have renamed UmbracoContext.UmbracoUrl = CleanedUmbracoUrl and UmbracoContext.RequextUrl = OriginalRequestUrl
Have moved the route processing logic to a static method on PublishedContentRequest which auto assigns the request back to the UmbracoContext, plus this is a cleaner
way to do the processing, including allowing us to unit test this one aspect.
Lastly, we are now rewriting the path back to the original URL in the RenderRouteHandler so that in MVC controllers the HttpContext.Request actually
reflects the URL that the client requested, not the rewritten URL (we do this in webforms too)
2012-10-26 02:55:57 +05:00
Shannon Deminick
d4d4272b1b
Moved RenderModel to Models namespace. Created new base UmbracoViewPage to use for umbraco partial views, etc... and renamed
...
RenderViewPage to UmbracoTemplatePage which now inherits from UmbracoViewPage. Added NiceUrl and NiceUrlWithDomain as extension
methods to IPublishedContent.
2012-10-24 09:59:23 +05:00
Stephan
079aae7e63
bugfix unit tests polluting each other - static settings issue
2012-10-05 08:23:43 -02:00
Shannon Deminick
c0102f1c71
Refactored the traversal, ishelper, etc... methods to be extension methods on IPublishedContent so now all of these methods are available on the Typed object not just the dynamic object which makes a whole lot more sense... and you can have intellisense.
...
Updated DynamicPublishedContent's methods to just proxy calls to the new extension methods so that all of the logic is contained in one place.
Added new GetRootDocuments to the IPublishedContentStore since we need this in order to get the root list of documents for many of these methods.
Fixed an issue with the DynamicNode to IPublishedContent converter.
Fixed many of the failing unit tests.
2012-10-04 01:31:08 +05:00
Shannon Deminick
56c93891a8
Fixes the ClearDatabase call in SqlCEHelper... pretty flukey that unit tests were even working with this bug for so long.
...
Fixes the RenderRouteHandlerTests.
2012-10-02 02:33:19 +05:00
Shannon Deminick
73c79e8528
After talks with morten and stephane, this renames
...
IDocumentLookup -> IPublishedContentLookup
2012-10-02 01:43:05 +05:00
Shannon Deminick
827d4dd6c0
After talks with morten and stephane, this renames
...
DocumentRequestBuilder -> PublishedContentRequestBuilder
2012-10-02 01:41:54 +05:00
Shannon Deminick
ffd14c839b
After talks with morten and stephane, this renames
...
DocumentRequest -> PublishedContentRequest
2012-10-02 01:40:19 +05:00
Shannon Deminick
053df24640
After talks with morten and stephane, this renames
...
IDocument -> IPublishedContent
DynamicDocument -> DynamicPublishedContent
2012-10-02 01:35:39 +05:00
Stephan
eeb305c740
fix uQuery.GetNodeIdByUrl
2012-10-01 13:08:10 -02:00
Stephan
c19541cb11
handle routing cache corruption cases, more unit tests
2012-10-01 12:20:51 -02:00
Stephan
dea22f22cb
fix UriUtility, fix unit tests
2012-10-01 09:52:32 -02:00
Stephan
8cd49749ec
fix routing, more unit tests
2012-09-30 14:02:11 -02:00
Stephan
3e99dd0d55
fix NiceUrl and add more tests
2012-09-30 12:24:23 -02:00