Added and updated unit tests for the ValidateVariation method

This commit is contained in:
Daniël Knippers
2019-09-19 13:50:19 +02:00
parent 82c3af51fe
commit aa4677e1dd
2 changed files with 79 additions and 19 deletions

View File

@@ -184,6 +184,8 @@ namespace Umbraco.Core
// if it does not vary by segment
// the segment cannot have a value
// segment may always be null, even when the ContentVariation.Segment flag is set for this variation,
// therefore the exact parameter is not used in segment validation.
if (!variation.VariesBySegment() && segment != null && !(wildcards && segment == "*"))
{
if (throwIfInvalid)