Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
support committed Mar 24, 2024
1 parent f86529f commit a579e51
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/Tests/Grand.Web.Common.Tests/App_Data/Settings.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ConnectionString": "connectionstring",
"DbProvider": 0
}
1 change: 0 additions & 1 deletion src/Tests/Grand.Web.Common.Tests/App_Data/index.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class AuthorizeMenuAttributeTests
public void Setup()
{
CommonPath.BaseDirectory = "";
DataSettingsManager.SaveSettings(new DataSettings { ConnectionString = "connectionstring", DbProvider = DbProvider.MongoDB }).GetAwaiter().GetResult();
var settings = DataSettingsManager.LoadSettings();
_mockPermissionService = new Mock<IPermissionService>();
_mockAdminSiteMapService = new Mock<IAdminSiteMapService>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@
<ProjectReference Include="..\..\Core\Grand.SharedKernel\Grand.SharedKernel.csproj" />
<ProjectReference Include="..\..\Web\Grand.Web.Common\Grand.Web.Common.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="App_Data\Settings.cfg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

0 comments on commit a579e51

Please sign in to comment.