public void GetItem() { Database database = global::Sitecore.Configuration.Factory.GetDatabase("master"); Assert.IsNotNull(database); Item item = database.GetItem("/sitecore/content"); using (new BucketImportContext(item)) { //Disable History Engine //Disable Publishing Queue //Smart Links Database Rebuild BucketManager.CreateBucket(item, (itm => BucketManager.AddSearchTabToItem(item))); } Assert.IsNotNull(item); Assert.AreEqual("content", item.Name); }