Browse Source

Add test-case for related page title

pull/18782/head
Enis Necipoglu 2 years ago
parent
commit
d3d7e1bd76
No known key found for this signature in database GPG Key ID: 1EC55E13241E1680
  1. 9
      modules/cms-kit/test/Volo.CmsKit.Application.Tests/Menus/MenuItemAdminAppService_Tests.cs

9
modules/cms-kit/test/Volo.CmsKit.Application.Tests/Menus/MenuItemAdminAppService_Tests.cs

@ -32,6 +32,15 @@ public class MenuItemAdminAppService_Tests : CmsKitApplicationTestBase
menu.ShouldNotBeNull();
}
[Fact]
public async Task GetAsync_PageTitleShouldBeCorrect_WithRelatedPage()
{
var menu = await MenuAdminAppService.GetAsync(TestData.MenuItem_4_With_Page_1_Id);
menu.ShouldNotBeNull();
menu.PageTitle.ShouldBe(TestData.Page_1_Title);
}
[Fact]
public async Task GetListAsync_ShouldWorkProperly()
{

Loading…
Cancel
Save