mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5480 from mikenz/subsites-breaks-tests
Disable subsite filters when running unit tests
This commit is contained in:
commit
d0e4bda80d
@ -207,6 +207,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
if(class_exists('RootURLController')) RootURLController::reset();
|
||||
if(class_exists('Translatable')) Translatable::reset();
|
||||
if(class_exists('Subsite', false)) Subsite::disable_subsite_filter(true);
|
||||
Versioned::reset();
|
||||
DataObject::reset();
|
||||
if(class_exists('SiteTree')) SiteTree::reset();
|
||||
|
Loading…
Reference in New Issue
Block a user