Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_base_profile
Commits
2a3a341d
Commit
2a3a341d
authored
Sep 20, 2021
by
Chris Shantz
Browse files
Merge branch '3.0.x' into prod/3.0.x
parents
c4aa010b
b2c4efbd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
composer.json
composer.json
+2
-2
tests/src/Functional/UwWcmsBasicTest.php
tests/src/Functional/UwWcmsBasicTest.php
+9
-3
No files found.
composer.json
View file @
2a3a341d
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
"
drupal/jquery_ui_slider
"
:
"
1.1
"
,
"
drupal/jquery_ui_slider
"
:
"
1.1
"
,
"
drupal/jquery_ui_touch_punch
"
:
"
1.0.0
"
,
"
drupal/jquery_ui_touch_punch
"
:
"
1.0.0
"
,
"
drupal/label_help
"
:
"
dev-8.x-1.x
"
,
"
drupal/label_help
"
:
"
dev-8.x-1.x
"
,
"
drupal/layout_builder_browser
"
:
"
dev-1.
2
-uw_wcms
2
"
,
"
drupal/layout_builder_browser
"
:
"
dev-1.
3
-uw_wcms
1
"
,
"
drupal/layout_builder_ids
"
:
"
2.0.0-rc6
"
,
"
drupal/layout_builder_ids
"
:
"
2.0.0-rc6
"
,
"
drupal/layout_builder_lock
"
:
"
1.1
"
,
"
drupal/layout_builder_lock
"
:
"
1.1
"
,
"
drupal/layout_builder_modal
"
:
"
1.1
"
,
"
drupal/layout_builder_modal
"
:
"
1.1
"
,
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
"
drupal/layout_builder_styles
"
:
"
1.0-beta4
"
,
"
drupal/layout_builder_styles
"
:
"
1.0-beta4
"
,
"
drupal/leaflet
"
:
"
2.1.14
"
,
"
drupal/leaflet
"
:
"
2.1.14
"
,
"
drupal/libraries
"
:
"
3.0-beta1
"
,
"
drupal/libraries
"
:
"
3.0-beta1
"
,
"
drupal/linkit
"
:
"
dev-6.0.0-beta
1
-uw_wcms
2
"
,
"
drupal/linkit
"
:
"
dev-6.0.0-beta
2
-uw_wcms
1
"
,
"
drupal/mailsystem
"
:
"
4.3
"
,
"
drupal/mailsystem
"
:
"
4.3
"
,
"
drupal/markup
"
:
"
1.0-beta3
"
,
"
drupal/markup
"
:
"
1.0-beta3
"
,
"
drupal/maxlength
"
:
"
1.0-rc1
"
,
"
drupal/maxlength
"
:
"
1.0-rc1
"
,
...
...
tests/src/Functional/UwWcmsBasicTest.php
View file @
2a3a341d
...
@@ -1498,8 +1498,9 @@ class UwWcmsBasicTest extends BrowserTestBase {
...
@@ -1498,8 +1498,9 @@ class UwWcmsBasicTest extends BrowserTestBase {
// No access to edit home page menu entry.
// No access to edit home page menu entry.
$this
->
drupalGet
(
'admin/structure/menu/link/uw_base_profile.front_page/edit'
);
$this
->
drupalGet
(
'admin/structure/menu/link/uw_base_profile.front_page/edit'
);
$this
->
assertSession
()
->
statusCodeEquals
(
403
);
$this
->
assertSession
()
->
statusCodeEquals
(
403
);
// Test that the home page cannot be the parent of any item.
// Test that the home page cannot be the parent of any item. Using first
$this
->
drupalGet
(
'admin/structure/menu/link/uw_main_menu.blog/edit'
);
// menu item that was created.
$this
->
drupalGet
(
'admin/structure/menu/item/1/edit'
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
elementExists
(
'css'
,
'select#edit-menu-parent'
);
$this
->
assertSession
()
->
elementExists
(
'css'
,
'select#edit-menu-parent'
);
$this
->
assertSession
()
->
elementNotExists
(
'css'
,
'select#edit-menu-parent > option[value="main:uw_base_profile.front_page"]'
);
$this
->
assertSession
()
->
elementNotExists
(
'css'
,
'select#edit-menu-parent > option[value="main:uw_base_profile.front_page"]'
);
...
@@ -1508,7 +1509,12 @@ class UwWcmsBasicTest extends BrowserTestBase {
...
@@ -1508,7 +1509,12 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
drupalGet
(
'admin/structure/menu/manage/main'
);
$this
->
drupalGet
(
'admin/structure/menu/manage/main'
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertEquals
(
base_path
()
.
'catalogs'
,
$this
->
getSession
()
->
getPage
()
->
findLink
(
'Catalogs'
)
->
getAttribute
(
'href'
));
$this
->
assertEquals
(
base_path
()
.
'catalogs'
,
$this
->
getSession
()
->
getPage
()
->
findLink
(
'Catalogs'
)
->
getAttribute
(
'href'
));
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-links-menu-plugin-iduw-main-menucatalogs-enabled'
);
// All menus items created using menu_link_content have uuid as part
// of their id. Getting menu id from tr element. And using that menu id
// to validate if checkbox is unchecked.
$menu_uuid
=
$this
->
getSession
()
->
getPage
()
->
findLink
(
'Catalogs'
)
->
getParent
()
->
getParent
()
->
getAttribute
(
'data-drupal-selector'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
$menu_uuid
.
'-enabled'
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment