From 3afff81bdfba8b2062a92a0393781a60e9025aee Mon Sep 17 00:00:00 2001 From: "Cochrane, Mike" Date: Mon, 9 May 2016 19:53:20 +1200 Subject: [PATCH] Disable subsite filters so it doesn't break framework unit tests --- dev/SapphireTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 4fb2310c4..e71e8b186 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -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();