We’re rewarding the question askers & reputations are being recalculated! Read more.
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 272

Only for questions that are specific to unit testing Sitecore-based features, controls, renderings and other Sitecore-specific application logic

3
votes
As I stated in comments, it's a good practice to provide a Minimal, Complete, and Verifiable example. For this particular case, it seems everything works fine so I need more details to reproduce your …
answered May 21 '18 by Serhii Shushliapin
1
vote
It's a bug and needs to be fixed in FakeDb. But the good news is that you may hotfix it following the article instructions carefully: add shell site registration to your config: <sites> <site n …
answered Jul 31 by Serhii Shushliapin
5
votes
Sitecore FakeDb does not set the context item because depending on the scenario, you might or might not need it to be set. If you need the context item not to be null, you can set it in your test usi …
answered Jan 12 '18 by Serhii Shushliapin
5
votes
If you're on Sitecore 8.2+, you can use abstract BaseLinkManager class (that's actually valid for all the old static managers). In combination with Sitecore Dependency Injection that is easy to inject …
answered Nov 28 '17 by Serhii Shushliapin
1
vote
The decision to obsolete the switchers was predicted by SitecoreAuthenticationProvider which became obsolete in 8.2: /// <summary>SitecoreAuthenticationProvider class</summary> [Obsolete] public clas …
answered Jul 14 '17 by Serhii Shushliapin
2
votes
I'd suggest not to use FakeDb for (unit) testing such scenario. If I unrerstand your intention correctly, you do not test any logic of your application. You're trying to test a piece of Sitecore funct …
answered Mar 27 '18 by Serhii Shushliapin