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
98ccb1ce
Commit
98ccb1ce
authored
Sep 24, 2021
by
Lily Yan
Browse files
ISTWCMS-4535 Change assertOptionSelected() to assertSession()->optionExists()
Change record:
https://www.drupal.org/node/3129738
parent
34bf090b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/src/Functional/UwWcmsBasicTest.php
tests/src/Functional/UwWcmsBasicTest.php
+6
-6
No files found.
tests/src/Functional/UwWcmsBasicTest.php
View file @
98ccb1ce
...
...
@@ -845,8 +845,8 @@ class UwWcmsBasicTest extends BrowserTestBase {
$tvi
=
$this
->
getSession
()
->
getPage
()
->
find
(
'xpath'
,
"//span[contains(text(), 'Taxonomy Views Integrator Settings')]"
);
$this
->
assertEquals
(
'edit-tvi'
,
$tvi
->
getParent
()
->
getParent
()
->
getAttribute
(
'id'
));
$this
->
assertSession
()
->
checkboxChecked
(
'edit-tvi-enable-override'
);
$this
->
assert
OptionSelected
(
'edit-tvi-view'
,
'uw_view_catalog_show_nodes'
);
$this
->
assert
OptionSelected
(
'edit-tvi-view-display'
,
'catalog_a_z_page'
);
$this
->
assert
Session
()
->
optionExists
(
'edit-tvi-view'
,
'uw_view_catalog_show_nodes'
)
->
isSelected
()
;
$this
->
assert
Session
()
->
optionExists
(
'edit-tvi-view-display'
,
'catalog_a_z_page'
)
->
isSelected
()
;
$this
->
assertSession
()
->
checkboxChecked
(
'tvi-inherit-check'
);
$this
->
assertSession
()
->
checkboxChecked
(
'tvi-pass-arguments'
);
...
...
@@ -2153,7 +2153,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
drupalGet
(
'admin/rearrange-contacts'
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
pageTextContains
(
'Published'
);
$this
->
assert
OptionSelected
(
'edit-status'
,
'- Any -'
);
$this
->
assert
Session
()
->
optionExists
(
'edit-status'
,
'- Any -'
)
->
isSelected
()
;
$this
->
assertSession
()
->
buttonExists
(
'Apply filters'
);
// Check dashboard contact rearrange link.
...
...
@@ -2272,7 +2272,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
drupalGet
(
'admin/rearrange-profiles'
);
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
pageTextContains
(
'Published'
);
$this
->
assert
OptionSelected
(
'edit-status'
,
'- Any -'
);
$this
->
assert
Session
()
->
optionExists
(
'edit-status'
,
'- Any -'
)
->
isSelected
()
;
$this
->
assertSession
()
->
buttonExists
(
'Apply filters'
);
// Check dashboard profile rearrange link.
...
...
@@ -2516,11 +2516,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
statusCodeEquals
(
200
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-redirect-auto-redirect'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-redirect-passthrough-querystring'
);
$this
->
assert
OptionSelected
(
'edit-redirect-default-status-code'
,
'301 Moved Permanently'
);
$this
->
assert
Session
()
->
optionExists
(
'edit-redirect-default-status-code'
,
'301 Moved Permanently'
)
->
isSelected
()
;
$this
->
assertSession
()
->
checkboxChecked
(
'edit-redirect-route-normalizer-enabled'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-redirect-ignore-admin-path'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-redirect-access-check'
);
$this
->
assert
OptionSelected
(
'edit-row-limit'
,
'10000'
);
$this
->
assert
Session
()
->
optionExists
(
'edit-row-limit'
,
'10000'
)
->
isSelected
()
;
$this
->
assertSession
()
->
fieldExists
(
'ignore_pages'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-suppress-404'
);
}
...
...
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