Merge
This commit is contained in:
@@ -19,6 +19,7 @@ using Umbraco.Cms.Core.Persistence.Repositories;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement;
|
||||
using Umbraco.Cms.Infrastructure.Scoping;
|
||||
using Umbraco.Cms.Tests.Common.Attributes;
|
||||
using Umbraco.Cms.Tests.Common.Builders;
|
||||
using Umbraco.Cms.Tests.Common.Extensions;
|
||||
using Umbraco.Cms.Tests.Common.Testing;
|
||||
@@ -847,6 +848,7 @@ public class ContentTypeRepositoryTest : UmbracoIntegrationTest
|
||||
}
|
||||
|
||||
[Test]
|
||||
[LongRunning]
|
||||
public void Can_Verify_Addition_Of_PropertyType_After_ContentType_Is_Used()
|
||||
{
|
||||
// Arrange
|
||||
|
||||
@@ -21,6 +21,7 @@ using Umbraco.Cms.Infrastructure.Persistence;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement;
|
||||
using Umbraco.Cms.Infrastructure.Scoping;
|
||||
using Umbraco.Cms.Persistence.SqlServer.Services;
|
||||
using Umbraco.Cms.Tests.Common.Attributes;
|
||||
using Umbraco.Cms.Tests.Common.Builders;
|
||||
using Umbraco.Cms.Tests.Common.Testing;
|
||||
using Umbraco.Cms.Tests.Integration.Testing;
|
||||
@@ -742,6 +743,7 @@ public class DocumentRepositoryTest : UmbracoIntegrationTest
|
||||
}
|
||||
|
||||
[Test]
|
||||
[LongRunning]
|
||||
public void GetAllContentManyVersions()
|
||||
{
|
||||
IContent[] result;
|
||||
|
||||
@@ -11,6 +11,7 @@ using Umbraco.Cms.Core.Models.Entities;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement;
|
||||
using Umbraco.Cms.Infrastructure.Scoping;
|
||||
using Umbraco.Cms.Tests.Common.Attributes;
|
||||
using Umbraco.Cms.Tests.Common.Builders;
|
||||
using Umbraco.Cms.Tests.Common.Testing;
|
||||
using Umbraco.Cms.Tests.Integration.Testing;
|
||||
@@ -22,6 +23,7 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Persistence.Repos
|
||||
public class EntityRepositoryTest : UmbracoIntegrationTest
|
||||
{
|
||||
[Test]
|
||||
[LongRunning]
|
||||
public void Get_Paged_Mixed_Entities_By_Ids()
|
||||
{
|
||||
// Create content
|
||||
|
||||
@@ -318,36 +318,6 @@ public class MediaRepositoryTest : UmbracoIntegrationTest
|
||||
}
|
||||
}
|
||||
|
||||
[Ignore("Unsupported feature.")]
|
||||
[Test]
|
||||
public void QueryMedia_ContentTypeAliasFilter()
|
||||
{
|
||||
// we could support this, but it would require an extra join on the query,
|
||||
// and we don't absolutely need it now, so leaving it out for now
|
||||
|
||||
// Arrange
|
||||
var folderMediaType = MediaTypeService.Get(1031);
|
||||
var provider = ScopeProvider;
|
||||
using (var scope = provider.CreateScope())
|
||||
{
|
||||
var repository = CreateRepository(provider, out var mediaTypeRepository);
|
||||
|
||||
// Act
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
var folder = MediaBuilder.CreateMediaFolder(folderMediaType, -1);
|
||||
repository.Save(folder);
|
||||
}
|
||||
|
||||
string[] types = { "Folder" };
|
||||
var query = provider.CreateQuery<IMedia>().Where(x => types.Contains(x.ContentType.Alias));
|
||||
var result = repository.Get(query);
|
||||
|
||||
// Assert
|
||||
Assert.That(result.Count(), Is.GreaterThanOrEqualTo(11));
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetPagedResultsByQuery_FirstPage()
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ using Umbraco.Cms.Core.Persistence.Repositories;
|
||||
using Umbraco.Cms.Infrastructure.Persistence;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement;
|
||||
using Umbraco.Cms.Infrastructure.Scoping;
|
||||
using Umbraco.Cms.Tests.Common.Attributes;
|
||||
using Umbraco.Cms.Tests.Common.Builders;
|
||||
using Umbraco.Cms.Tests.Common.Testing;
|
||||
using Umbraco.Cms.Tests.Integration.Testing;
|
||||
@@ -79,6 +80,7 @@ public class PublicAccessRepositoryTest : UmbracoIntegrationTest
|
||||
}
|
||||
|
||||
[Test]
|
||||
[LongRunning]
|
||||
public void Can_Add2()
|
||||
{
|
||||
var content = CreateTestData(3).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user