Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_base_profile
Commits
63b47390
Commit
63b47390
authored
Sep 22, 2021
by
Lily Yan
Browse files
ISTWCMS-4535 Change assertNoFieldChecked() to assertSession()->checkboxNotChecked()
Change record:
https://www.drupal.org/node/3129738
parent
8107e366
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/src/Functional/UwWcmsBasicTest.php
View file @
63b47390
...
...
@@ -995,11 +995,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-blog-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-blog-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-service'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-web-page'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-event'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-person'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-blog-0-schema-web-page'
);
// Make sure content catalog item some are checked, and some are not.
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-basic'
);
...
...
@@ -1007,11 +1007,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-web-page'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-article'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-event'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-person'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-service'
);
// Make sure content contact some are checked, and some are not.
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-contact-0-basic'
);
...
...
@@ -1019,11 +1019,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-contact-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-contact-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-service'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-web-page'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-article'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-event'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-contact-0-schema-web-page'
);
// Make sure content event some are checked, and some are not checked.
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-event-0-basic'
);
...
...
@@ -1031,11 +1031,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-event-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-event-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-service'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-web-page'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-article'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-person'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-event-0-schema-web-page'
);
// Make sure content news item some are checked, and some are not checked.
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-basic'
);
...
...
@@ -1043,11 +1043,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-service'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-web-page'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-event'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-person'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-news-item-0-schema-web-page'
);
// Make sure content profile some are checked, and some are not.
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-profile-0-basic'
);
...
...
@@ -1055,11 +1055,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-profile-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-profile-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-service'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-web-page'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-article'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-event'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-profile-0-schema-web-page'
);
// Make sure content web page some are checked, and some are not checked.
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-basic'
);
...
...
@@ -1067,11 +1067,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-open-graph'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-twitter-cards'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-web-page'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-article'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-event'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-organization'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-person'
);
$this
->
assert
NoField
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-service'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-article'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-event'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-organization'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-person'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-entity-type-groups-node-uw-ct-web-page-0-schema-service'
);
// Make sure meta tag info fields exist when
// add a node of the given content type.
...
...
@@ -1309,8 +1309,8 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
drupalGet
(
'admin/structure/types/add'
);
// Test that "Preview before submitting" is set to "Disabled".
$this
->
assertSession
()
->
checkboxChecked
(
'edit-preview-mode-0'
);
$this
->
assert
NoField
Checked
(
'edit-preview-mode-1'
);
$this
->
assert
NoField
Checked
(
'edit-preview-mode-2'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-preview-mode-1'
);
$this
->
assert
Session
()
->
checkboxNot
Checked
(
'edit-preview-mode-2'
);
$types
=
$this
->
getContentTypes
();
foreach
(
$types
as
$type
)
{
...
...
Write
Preview
Supports
Markdown
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