Browse Source
Add test-case for related page title
pull/18782/head
Enis Necipoglu
2 years ago
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680
1 changed files with
9 additions and
0 deletions
-
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() |
|
|
|
{ |
|
|
|
|