Commit 63b47390 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4535 Change assertNoFieldChecked() to assertSession()->checkboxNotChecked()

Change record:
https://www.drupal.org/node/3129738
parent 8107e366
......@@ -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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-service');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-web-page');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-event');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-person');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-blog-0-schema-service');
$this->assertSession()->checkboxNotChecked('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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-person');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-service');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-article');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-event');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-catalog-item-0-schema-person');
$this->assertSession()->checkboxNotChecked('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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-service');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-web-page');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-article');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-event');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-contact-0-schema-service');
$this->assertSession()->checkboxNotChecked('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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-service');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-web-page');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-article');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-person');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-event-0-schema-service');
$this->assertSession()->checkboxNotChecked('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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-service');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-web-page');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-event');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-person');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-news-item-0-schema-service');
$this->assertSession()->checkboxNotChecked('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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-service');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-web-page');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-article');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-event');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-profile-0-schema-service');
$this->assertSession()->checkboxNotChecked('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->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');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-person');
$this->assertNoFieldChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-service');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-article');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-event');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-organization');
$this->assertSession()->checkboxNotChecked('edit-entity-type-groups-node-uw-ct-web-page-0-schema-person');
$this->assertSession()->checkboxNotChecked('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->assertNoFieldChecked('edit-preview-mode-1');
$this->assertNoFieldChecked('edit-preview-mode-2');
$this->assertSession()->checkboxNotChecked('edit-preview-mode-1');
$this->assertSession()->checkboxNotChecked('edit-preview-mode-2');
$types = $this->getContentTypes();
foreach ($types as $type) {
......
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