diff --git a/tests/frameworkProcessRoutesTest.cfc b/tests/frameworkProcessRoutesTest.cfc index 3ba59dfe..c470d995 100755 --- a/tests/frameworkProcessRoutesTest.cfc +++ b/tests/frameworkProcessRoutesTest.cfc @@ -16,6 +16,7 @@ component extends="tests.InjectableTest" { { 'hint' = 'Standard Route', '$GET/old/path' = '/new/path' }, { 'hint' = 'Resource Routes', '$RESOURCES' = 'dogs' } ]; + variables.fwVars.framework.routesCaseSensitive = true; } public void function testProcessRoutes() { diff --git a/tests/frameworkRouteTest.cfc b/tests/frameworkRouteTest.cfc index 9ca5cf6b..eefafec4 100644 --- a/tests/frameworkRouteTest.cfc +++ b/tests/frameworkRouteTest.cfc @@ -2,10 +2,13 @@ component extends="tests.InjectableTest" { public void function setUp() { variables.fw = new framework.one(); + injectMethod( variables.fw, this, 'isFrameworkInitialized', 'isFrameworkInitialized' ); + variables.fwVars = getVariablesScope( variables.fw ); + variables.fwVars.framework.routesCaseSensitive = true; // doesn't work on Railo: // makePublic(variables.fw, "processRouteMatch"); // this works on both Railo and ACF: - variables.fw.processRouteMatch = getVariablesScope(variables.fw).processRouteMatch; + variables.fw.processRouteMatch = variables.fwVars.processRouteMatch; } public void function testRouteMatchBasics() @@ -117,4 +120,10 @@ component extends="tests.InjectableTest" { uri = REReplace( uri, "^.*\.cf[cm]", "" ); assertEquals( "/product/:ignore", uri ); } + + // PRIVATE + + private boolean function isFrameworkInitialized() { + return false; + } }