diff --git a/tests/control/DirectorTest.php b/tests/control/DirectorTest.php index 97192e10c0c..3d68179f349 100644 --- a/tests/control/DirectorTest.php +++ b/tests/control/DirectorTest.php @@ -17,7 +17,7 @@ function setUp() { self::$originalRequestURI = $_SERVER['REQUEST_URI']; } - Director::addRules(99, array( + Config::inst()->update('Director', 'rules', array( 'DirectorTestRule/$Action/$ID/$OtherID' => 'DirectorTestRequest_Controller' )); } diff --git a/tests/control/RequestHandlingTest.php b/tests/control/RequestHandlingTest.php index 10837ee3aed..78587bd0704 100644 --- a/tests/control/RequestHandlingTest.php +++ b/tests/control/RequestHandlingTest.php @@ -250,7 +250,7 @@ function testActionHandlingOnField() { /** * Director rules for the test */ -Director::addRules(50, array( +Config::inst()->update('Director', 'rules', array( // If we don't request any variables, then the whole URL will get shifted off. This is fine, but it means that the // controller will have to parse the Action from the URL itself. 'testGoodBase1' => "RequestHandlingTest_Controller", diff --git a/tests/forms/FormTest.php b/tests/forms/FormTest.php index c7ca8ec58f0..61acf536fa6 100644 --- a/tests/forms/FormTest.php +++ b/tests/forms/FormTest.php @@ -508,6 +508,7 @@ function getViewer($action = null) { } } -Director::addRules(50, array( - 'FormTest_Controller' => "FormTest_Controller", +Config::inst()->update('Director', 'rules', array( + 'FormTest_Controller' => 'FormTest_Controller' )); +