mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix small bug in index provider
Also cleanup the API a bit Also provide more detailled statistics about the search index on the "Search Index Management" page. --HG-- branch : dev
This commit is contained in:
@@ -278,7 +278,7 @@ namespace Orchard.Tests.Modules.Indexing {
|
||||
_provider.Store("default", _provider.New(2).Add("b", DateTime.Now).Store());
|
||||
_provider.Store("default", _provider.New(3).Add("c", 333));
|
||||
|
||||
Assert.That(_provider.GetFields("default").Length, Is.EqualTo(4));
|
||||
Assert.That(_provider.GetFields("default").Count(), Is.EqualTo(4));
|
||||
Assert.That(_provider.GetFields("default").OrderBy(s => s).ToArray(), Is.EqualTo(new [] { "a", "b", "c", "id"}));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user