Commit e9771b48 authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch 'feature/ISTWCMS-5040-lkmorlan-only-one-footer-node' into '3.0.x'

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

See merge request !207
parents 4fcb72cd 5eabac9a
......@@ -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