Commit fea8bf1b authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4535 Change assertEqual() to assertEquals()

Change record:
https://www.drupal.org/node/3129738
parent 8212947a
......@@ -176,7 +176,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
];
$options = $this->getOptions('settings[block_form][field_uw_text_overlay_style]');
foreach ($expected_options as $key => $expected_option) {
$this->assertEqual($options[$key], $expected_option);
$this->assertEquals($options[$key], $expected_option);
}
// Full banner is selected as default.
$this->assertFieldByXPath('//option[@value="full-width" and @selected="selected"]', NULL, 'Full banner width, bottom, theme colour background ("FDSU" style) is selected.');
......@@ -466,10 +466,10 @@ class UwWcmsBasicTest extends BrowserTestBase {
foreach ($rows as $key => $row) {
preg_match("/\d{4}\-\d{2}-\d{2}/", $row->getText(), $matches);
if ($view == 'events') {
$this->assertEqual($matches[0], $expected_dates[$key]);
$this->assertEquals($matches[0], $expected_dates[$key]);
}
else {
$this->assertEqual($matches[0], $expected_date_fields[$key]);
$this->assertEquals($matches[0], $expected_date_fields[$key]);
}
}
}
......@@ -861,7 +861,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
'List (text)',
];
foreach ($expected_items as $key => $value) {
$this->assertEqual($elements[$key]->getText(), $value);
$this->assertEquals($elements[$key]->getText(), $value);
}
// Make sure 'Tabs to display' field in creating catalog term.
......@@ -2181,7 +2181,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
'The node bundle is uw_ct_contact',
];
foreach ($expected_items as $key => $value) {
$this->assertEqual($elements[$key]->getText(), $value);
$this->assertEquals($elements[$key]->getText(), $value);
}
}
......@@ -2300,7 +2300,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
'The node bundle is uw_ct_profile',
];
foreach ($expected_items as $key => $value) {
$this->assertEqual($elements[$key]->getText(), $value);
$this->assertEquals($elements[$key]->getText(), $value);
}
}
......
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