Commit bc38a645 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4957: Ensure assertTrue() always gets a Boolean

Fixes regression introduced in 8212947a.
parent 54006e1d
......@@ -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');
......
Markdown is supported
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