mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '5.1' into 5
This commit is contained in:
commit
e696e70dc4
@ -486,7 +486,9 @@ class ConfirmedPasswordFieldTest extends SapphireTest
|
||||
// CWP front-end templates break this logic - but there's no easy fix for that.
|
||||
// For the most part we are interested in ensuring this works in the CMS with default templates.
|
||||
$originalThemes = SSViewer::get_themes();
|
||||
SSViewer::set_themes(LeftAndMain::config()->uninherited('admin_themes'));
|
||||
if (class_exists(LeftAndMain::class)) {
|
||||
SSViewer::set_themes(LeftAndMain::config()->uninherited('admin_themes'));
|
||||
}
|
||||
try {
|
||||
$form = new Form();
|
||||
$field = new ConfirmedPasswordField('Test');
|
||||
|
Loading…
Reference in New Issue
Block a user