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
fea8bf1b
Commit
fea8bf1b
authored
Sep 22, 2021
by
Lily Yan
Browse files
ISTWCMS-4535 Change assertEqual() to assertEquals()
Change record:
https://www.drupal.org/node/3129738
parent
8212947a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/src/Functional/UwWcmsBasicTest.php
View file @
fea8bf1b
...
...
@@ -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
->
assertEqual
s
(
$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
->
assertEqual
s
(
$matches
[
0
],
$expected_dates
[
$key
]);
}
else
{
$this
->
assertEqual
(
$matches
[
0
],
$expected_date_fields
[
$key
]);
$this
->
assertEqual
s
(
$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
->
assertEqual
s
(
$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
->
assertEqual
s
(
$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
->
assertEqual
s
(
$elements
[
$key
]
->
getText
(),
$value
);
}
}
...
...
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