Commit 5eabac9a authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-5040: Test that the node add page redirects to edit when there is already a site footer

parent 4fcb72cd
......@@ -645,6 +645,10 @@ class UwWcmsBasicTest extends BrowserTestBase {
}
}
$this->drupalGet('node/add/uw_ct_site_footer');
$match = preg_match(',site-footer/[^/]+/edit$,', $this->getSession()->getCurrentUrl());
$this->assert($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.
$edit = [
......
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