Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_base_profile
Commits
bc38a645
Commit
bc38a645
authored
Oct 18, 2021
by
Liam Morland
Browse files
ISTWCMS-4957: Ensure assertTrue() always gets a Boolean
Fixes regression introduced in
8212947a
.
parent
54006e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/src/Functional/UwWcmsBasicTest.php
tests/src/Functional/UwWcmsBasicTest.php
+2
-2
No files found.
tests/src/Functional/UwWcmsBasicTest.php
View file @
bc38a645
...
...
@@ -662,7 +662,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this
->
drupalGet
(
'node/add/uw_ct_site_footer'
);
$match
=
preg_match
(
',site-footer/[^/]+/edit$,'
,
$this
->
getSession
()
->
getCurrentUrl
());
$this
->
assertTrue
(
$match
,
'Node add page for site footer redirects to edit page when a footer already exists.'
);
$this
->
assertTrue
(
(
bool
)
$match
,
'Node add page for site footer redirects to edit page when a footer already exists.'
);
// Test uw_ct_sidebar. There is no title in the content type, only a node
// reference field.
...
...
@@ -700,7 +700,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$url
=
$this
->
getSession
()
->
getCurrentUrl
();
// Check that moderation form URL is in the expected format.
$match
=
preg_match
(
',/admin/uw-content-moderation/\d+/\d+/\d+$,'
,
$url
);
$this
->
assertTrue
(
$match
,
'Moderation form URL is in the expected format.'
);
$this
->
assertTrue
(
(
bool
)
$match
,
'Moderation form URL is in the expected format.'
);
// Load home page edit page.
$this
->
drupalGet
(
'home/edit'
);
...
...
Write
Preview
Markdown
is supported
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