Shannon
f8d6c85779
Merge remote-tracking branch 'origin/6.2.0' into 7.0.0
...
Conflicts:
src/Umbraco.Core/ApplicationContext.cs
src/Umbraco.Core/Models/ContentBase.cs
src/Umbraco.Core/Models/ContentTypeBase.cs
src/Umbraco.Core/Models/DataTypeDefinition.cs
src/Umbraco.Core/Persistence/Repositories/MemberTypeRepository.cs
src/Umbraco.Core/Persistence/RepositoryFactory.cs
src/Umbraco.Core/Services/IMemberTypeService.cs
src/Umbraco.Core/Services/MemberTypeService.cs
src/Umbraco.Core/Services/ServiceContext.cs
src/Umbraco.Tests/Routing/uQueryGetNodeIdByUrlTests.cs
2013-10-09 13:41:14 +11:00
Shannon
c6389852ea
Adds public ctors for ApplicationContext, ServiceContext, DatabaseContext, RepositoryFactory, makes IDatabaseFactory public, makes an interfaces for IEntityService, adds EnsureContext methods for ApplicationContext - to set the singleton.
2013-10-09 13:17:19 +11:00
Shannon
21c0152131
Merge remote-tracking branch 'origin/6.2.0' into 7.0.0
...
Conflicts:
src/Umbraco.Tests/BusinessLogic/BaseTest.cs
src/Umbraco.Web.UI/install/steps/theend.ascx
src/Umbraco.Web.UI/umbraco/Default.aspx
src/Umbraco.Web.UI/umbraco/controls/GenericProperties/GenericProperty.ascx
src/Umbraco.Web.UI/umbraco/developer/Xslt/editXslt.aspx
src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx
src/Umbraco.Web.UI/umbraco/umbraco.aspx
src/Umbraco.Web/UmbracoContext.cs
src/Umbraco.Web/umbraco.presentation/LegacyClasses.cs
src/Umbraco.Web/umbraco.presentation/install/steps/Definitions/LegacyClasses.cs
src/Umbraco.Web/umbraco.presentation/install/steps/LegacyClasses.cs
src/Umbraco.Web/umbraco.presentation/library.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Controls/LiveEditingToolbar.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/CreateModule/CreateModule.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/DeleteModule/DeleteModule.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/MacroModule/MacroModule.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/SkinModule/ImageUploader.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/SkinModule/SkinCustomizer.ascx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/SkinModule/SkinModule.cs
src/Umbraco.Web/umbraco.presentation/umbraco/LiveEditing/Modules/UnpublishModule/UnpublishModule.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadTemplates.cs
src/Umbraco.Web/umbraco.presentation/umbraco/controls/macroParameterControl.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/DLRScripting.ascx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/DLRScriptingTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/MediaTypeTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/ScriptTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/contentTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/create/mediaTasks.cs
src/Umbraco.Web/umbraco.presentation/umbraco/dashboard.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/login.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/settings/editTemplate.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbraco/umbraco.aspx.cs
src/Umbraco.Web/umbraco.presentation/umbracobase/baseHttpModule.cs
src/Umbraco.Web/umbraco.presentation/umbracobase/restExtension.cs
src/umbraco.businesslogic/Utils/TypeFinder.cs
src/umbraco.cms/businesslogic/Packager/Installer.cs
src/umbraco.cms/businesslogic/Packager/PackageActions/addRestExtension.cs
src/umbraco.cms/businesslogic/Packager/PackageActions/addXsltExtension.cs
src/umbraco.cms/businesslogic/skinning/Skin.cs
src/umbraco.cms/businesslogic/skinning/tasks/AddStyleSheetToTemplate.cs
src/umbraco.cms/businesslogic/skinning/tasks/ModifyCss.cs
src/umbraco.cms/businesslogic/skinning/tasks/ModifyTemplate.cs
src/umbraco.controls/CodeArea.cs
src/umbraco.controls/ProgressBar.cs
src/umbraco.editorControls/macrocontainer/Editor.cs
2013-10-03 12:51:46 +10:00
Shannon
55247fe31d
Finally got around to changing all calls to umbraco.IO to Umbraco.Core.IO - that'll clear up several hundreds of warnings :)
2013-10-03 12:45:40 +10:00
Shannon
81365cec25
Merge remote-tracking branch 'origin/6.2.0' into 7.0.0
...
Conflicts:
src/Umbraco.Core/Persistence/RepositoryFactory.cs
src/Umbraco.Tests/Models/DataValueSetterTests.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/DataTypeDefinitionRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaTypeRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/UserTypeRepositoryTest.cs
src/Umbraco.Tests/TestHelpers/FakeHttpContextFactory.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Tests/packages.config
2013-09-18 12:59:46 +10:00
Shannon
abe3efa9a1
Replaces Rhino mocks with Moq... so much nicer/easier.
2013-09-17 11:35:08 +10:00
Shannon
86a5d16e25
Added moq (need to replace all rhino mock later) allowing us to nicely mock umbraco settings, fixing up more unit tests.
2013-09-17 00:14:15 +10:00
Shannon
b043ee577f
Renamed config interfaces properly with Section suffix, re-implemented the For<T> UmbracoConfiguration method to retreive specific settings... might use this entirely instead of the nested access as it might make it easier to mock.
2013-09-16 17:39:45 +10:00
Shannon
09b68a75be
Simplifies the IContentSection so that there's no nesting of interface classes and updates some unit tests
2013-09-16 15:52:59 +10:00
Sebastiaan Janssen
cc45bbeca6
Fix unit tests that failed because UmbracoSettings.config was being cleaned up
2013-08-23 16:22:26 +02:00
Sebastiaan Janssen
7139e30296
Don't delete the config file directory, it can't sometimes
...
For now, don't delete umbracoSettings.config either, it makes a lot of tests fail
2013-06-22 15:53:10 +02:00
Sebastiaan Janssen
df1940a01c
Fix unit test by ensuring config file is copied if it doesn't exist
2013-06-22 15:07:40 +02:00
Shannon Deminick
67b57dea50
Changes profiler over to use a resolver and uses an interface for it. Changes core over to use a
...
LogProfiler and the web project to use a web profiler (MiniProfiler). Fixes medium trust implementation,
adds performance check for binding to begin request, changes Web profiler over to be decoupled from the
umbraco application objects (binds to events by itself)
2013-05-12 15:25:46 -10:00
Shannon Deminick
577d77cfab
Fixes: #U4-1760 - allows a developer to set the default RenderMvcController on startup.
2013-04-28 16:09:24 -10:00
Stephan
f2d7e3549d
XmlPublishedCache - fix casting exception messages
2013-04-04 15:24:29 -02:00
Shannon Deminick
3b982b80f5
Fixes test issues, needed to disable application cache for these tests since the cache invalidation happens at the CacheRefresher level but for these
...
tests (any many other ones) we are not 'booting' umbraco with the Boot managers so the CacheRefreshers are not wired up to listen to events to clear
the cache. This puts us another step closer to having a proper global cache solution that will work for everything. At least now, all of the legacy
code is using the ApplicationCache which we can now control from a central location. Changed NiceUrlsProviderWithDomainsTests to only require a new db
schema per fixture.
2013-03-23 04:01:52 +06:00
Stephan
47474d31d6
Web.PublishedCache - rename LegacyXmlCache into XmlPublishedCache
2013-03-22 15:02:26 -01:00
Stephan
fcb8f0d417
Web.Routing - RoutesCache goes with PublishedCache
2013-03-20 16:01:49 -01:00
Stephan
ce0c72d9f8
Web.PublishedCache - introduce contextual caches
2013-03-19 17:51:55 -01:00
Stephan
cce32f406f
Web.PublishedCache - move caches to UmbracoContext
2013-03-19 17:50:36 -01:00
Stephan
ef9ce720b2
Web.PublishedCache - create, migrate
2013-02-05 06:31:13 -01:00
Stephan
9fc5ee897f
Web.Routing - implement UrlProviderMode
2013-03-01 13:56:11 -01:00
Shannon Deminick
2b750843c5
Fixed up base web test, removes RequiresDbSetup in place of new database behavior - NoDatabasePerFixture.
...
Fixed issue with another test... no idea how it didn't show up failing before.
Fixes issue with string extensions and an infinite loop when the string to strip is empty/null.
2013-03-15 11:28:05 +06:00
Shannon Deminick
50b05d25f5
Added BaseUmbracoApplicationTests and fixed up dispose on the ApplicationContext to ensure the db object is disposed and doesn't
...
reset the PluginManager (as this shouldn't really need to be done). Cleaned up all unit tests so they follow the same structure and
uses this base class where necessary and eliminates a lot of duplicate code.
2013-03-13 18:31:07 +04:00
Shannon Deminick
75d218d2e3
Updated how mappers for persistence work with the MapperFor attribute and have made BaseMapper public but have
...
kept all properties, etc.. internal just so that they can be found so we don't have to register them.
Updates unit test to ensure the plugin manager is init'd properly with the 'false' override. Ensures that the base
db test also initializes the plugin manager properly.
2013-03-13 01:09:29 +04:00
Stephan
a2120d1c6b
Web.Routing - improve domains management
2013-03-12 16:12:38 -01:00
Stephan
fc3f9dfeae
Web.Routing - hide new wildcard domains from public APIs
...
only way to get them is through internal methods
+ improve / fix domains handling
+ fix failing tests
2013-03-12 15:16:12 -01:00
Stephan
ac3bec5d9e
Web.Routing - refactor domains management
2013-02-19 06:37:25 -01:00
Stephan
8b00e72bf6
Web.Routing - refactor url providing (U4-1321...) + new IUrlProvider
2013-01-31 10:06:25 -01:00
Shannon Deminick
7cc12211e1
Fixed unit tests
2013-02-27 23:34:55 +06:00
Shannon Deminick
f9b7e1b7fa
Merge with 6.0.1
2013-02-27 23:20:34 +06:00
Shannon Deminick
ae0991bc67
Fixed unit tests now that we have default values stored in GlobalSettings.
2013-02-27 23:02:12 +06:00
Shannon Deminick
eb8875066c
Reverts LookupByNiceUrlTests to not require a database setup
2013-02-21 22:12:30 +06:00
Shannon Deminick
5f28f279e0
Merge with 4.11.5
2013-02-21 22:03:42 +06:00
Shannon Deminick
828dc64035
Backports fix for FullpathToRoot in GlobalSettings... not sure how some unit tests have been working this whole time.
...
Changes UseLegacySchema default value to false... was set to true!?
un-ignores LookupByNiceUrl tests and still ensures it doesn't require a database to test by passing in an optional parameter
to LookupByNiceUrl to specify if we want to include domain lookups or not (default is true)
2013-02-21 22:02:56 +06:00
Stephan
e333ad2b23
Tests.Routing - fix tests
2013-02-20 14:38:28 -01:00
Stephan
5b0a8c0668
Tests - fix build broken by back-porting 6.x code
2013-02-20 10:12:41 -01:00
Stephan
c3ccf3a609
Tests - cleanup settings handling for more reliable tests
2013-02-19 18:01:52 -01:00
Stephan
7493426e25
Core.Strings - fix unit tests
2013-02-19 14:00:17 -01:00
Stephan
8bb447065c
Tests - cleanup settings handling for more reliable tests
2013-02-19 17:45:22 -01:00
Shannon Deminick
73bd0137e3
Merge with 4.11.5
2013-02-19 03:57:24 +06:00
Sebastiaan Janssen
83d7ea9ef1
Ignoring wrong unit test for now
2013-02-18 12:53:15 -01:00
Sebastiaan Janssen
3404f95b2e
Forgot one trailing slash in previous commit
2013-02-18 11:42:45 -01:00
Sebastiaan Janssen
e56738481b
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.
2013-02-18 11:38:07 -01:00
Shannon Deminick
566986201f
Changes ContentFinderByNiceUrlTests to not require a database by having an overloaded ctor param on
...
ContentFinderByNiceUrl to not require a domain lookup (up-ported from 6.0.x and 4.x logic). Changes
ContentFinderByAliasTests to not require a database by splitting the two tests, now there is also a
ContentFinderByAliasWithDomainsTests.
2013-02-21 22:32:44 +06:00
Shannon Deminick
f8760b34b8
Merge with 6.0.1
2013-02-21 06:10:25 +06:00
Stephan
957feefb2e
Tests.Routing - fix tests
2013-02-20 14:23:29 -01:00
Stephan
40b7659078
Tests.Routing, Web.Routing - more tests + fix wildcard domains
2013-02-20 08:51:41 -01:00
Stephan
0427ecc7f4
Tests.Routing - add tests for wildcard domains
2013-02-20 08:12:48 -01:00
Stephan
11560a5451
Test.Routing - more umbracoUrlAlias test
2013-02-20 06:47:07 -01:00