Commit 8107e366 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4535 Change assertFieldChecked() to assertSession()->checkboxChecked()

Change record:
https://www.drupal.org/node/3129738
parent ab8dc593
......@@ -990,11 +990,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->statusCodeEquals(200);
// Make sure content blog post some are checked, and some are not checked.
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-article');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-blog-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-blog-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-event');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-organization');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-person');
......@@ -1002,11 +1002,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertNoFieldChecked('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->assertFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-web-page');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-article');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-event');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-organization');
......@@ -1014,11 +1014,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-service');
// Make sure content contact some are checked, and some are not.
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-person');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-contact-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-contact-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-article');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-event');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-organization');
......@@ -1026,11 +1026,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertNoFieldChecked('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->assertFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-event');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-event-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-event-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-article');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-organization');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-person');
......@@ -1038,11 +1038,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertNoFieldChecked('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->assertFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-article');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-news-item-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-news-item-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-event');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-organization');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-person');
......@@ -1050,11 +1050,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertNoFieldChecked('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->assertFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-person');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-profile-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-profile-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-article');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-event');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-organization');
......@@ -1062,11 +1062,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertNoFieldChecked('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->assertFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-basic');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-advanced');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-open-graph');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-twitter-cards');
$this->assertFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-web-page');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-web-page-0-basic');
$this->assertSession()->checkboxChecked('edit-entity-type-groups-node-uw-ct-web-page-0-advanced');
$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->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-article');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-event');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-organization');
......@@ -1308,7 +1308,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
// Add new content type.
$this->drupalGet('admin/structure/types/add');
// Test that "Preview before submitting" is set to "Disabled".
$this->assertFieldChecked('edit-preview-mode-0');
$this->assertSession()->checkboxChecked('edit-preview-mode-0');
$this->assertNoFieldChecked('edit-preview-mode-1');
$this->assertNoFieldChecked('edit-preview-mode-2');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment