Skip to content

Commit

Permalink
LPD-43431 Update test to assert name
Browse files Browse the repository at this point in the history
  • Loading branch information
nNilton authored and brianchandotcom committed Dec 4, 2024
1 parent 0eb6180 commit 21882d8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{
"externalReferenceCode": "SITENAVIGATIONMENU1",
"menuItems": [
{
"externalReferenceCode": "TESTSITENAVIGATIONMENUITEM1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{
"externalReferenceCode": "SITENAVIGATIONMENU1",
"menuItems": [
{
"externalReferenceCode": "TESTSITENAVIGATIONMENUITEM1",
Expand Down Expand Up @@ -65,6 +66,6 @@
"type": "layout"
}
],
"name": "Test Site Navigation Menu"
"name": "Test Site Navigation Menu Update"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -3659,11 +3659,15 @@ private void _assertSiteConfiguration() {

private void _assertSiteNavigationMenu1() {
SiteNavigationMenu siteNavigationMenu =
_siteNavigationMenuLocalService.fetchSiteNavigationMenuByName(
_group.getGroupId(), "Test Site Navigation Menu");
_siteNavigationMenuLocalService.
fetchSiteNavigationMenuByExternalReferenceCode(
"SITENAVIGATIONMENU1", _group.getGroupId());

Assert.assertNotNull(siteNavigationMenu);

Assert.assertEquals(
"Test Site Navigation Menu", siteNavigationMenu.getName());

List<SiteNavigationMenuItem> siteNavigationMenuItems =
_siteNavigationMenuItemLocalService.getSiteNavigationMenuItems(
siteNavigationMenu.getSiteNavigationMenuId(), 0);
Expand Down Expand Up @@ -3736,11 +3740,15 @@ private void _assertSiteNavigationMenu1() {

private void _assertSiteNavigationMenu2() {
SiteNavigationMenu siteNavigationMenu =
_siteNavigationMenuLocalService.fetchSiteNavigationMenuByName(
_group.getGroupId(), "Test Site Navigation Menu");
_siteNavigationMenuLocalService.
fetchSiteNavigationMenuByExternalReferenceCode(
"SITENAVIGATIONMENU1", _group.getGroupId());

Assert.assertNotNull(siteNavigationMenu);

Assert.assertEquals(
"Test Site Navigation Menu Update", siteNavigationMenu.getName());

List<SiteNavigationMenuItem> siteNavigationMenuItems =
_siteNavigationMenuItemLocalService.getSiteNavigationMenuItems(
siteNavigationMenu.getSiteNavigationMenuId(), 0);
Expand Down

0 comments on commit 21882d8

Please sign in to comment.