From a63b3889e7d5aef15b5f8599a98eaa2d5b136041 Mon Sep 17 00:00:00 2001 From: Mundairson Date: Sat, 9 Jun 2018 17:15:26 +0100 Subject: [PATCH] Run the plugin set up before the UDI tests so the types are there. --- .../FrontEnd/UmbracoHelperTests.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs b/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs index 1c74e56b37..8d1bc23880 100644 --- a/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs +++ b/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs @@ -3,12 +3,14 @@ using System.Collections.Generic; using System.Text; using NUnit.Framework; using Umbraco.Core; +using Umbraco.Tests.TestHelpers; using Umbraco.Web; namespace Umbraco.Tests.FrontEnd { [TestFixture] public class UmbracoHelperTests + : BaseUmbracoApplicationTest { [Test] public void Truncate_Simple() @@ -308,6 +310,10 @@ namespace Umbraco.Tests.FrontEnd } // ------- UDI Conversion Tests + /// + /// This requires PluginManager.Current to be initialised before + /// running. + /// [Test] public static void Converting_boxed_udi_to_a_udi_returns_original_udi_value() { @@ -326,6 +332,10 @@ namespace Umbraco.Tests.FrontEnd Assert.That(result, Is.EqualTo(sample)); } + /// + /// This requires PluginManager.Current to be initialised before + /// running. + /// [Test] public static void Converting_string_udi_to_a_udi_returns_original_udi_value() { @@ -344,6 +354,10 @@ namespace Umbraco.Tests.FrontEnd Assert.That(result, Is.EqualTo(sample)); } + /// + /// This requires PluginManager.Current to be initialised before + /// running. + /// [Test] public static void Converting_hello_to_a_udi_returns_false() { @@ -362,6 +376,10 @@ namespace Umbraco.Tests.FrontEnd Assert.That(result, Is.Null); } + /// + /// This requires PluginManager.Current to be initialised before + /// running. + /// [Test] public static void Converting_unsupported_object_to_a_udi_returns_false() {