Skip to content

Commit

Permalink
Coldbox 6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Dec 20, 2024
1 parent 8f4d49e commit 58ec101
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test-harness/tests/specs/unit/URLServiceTest.cfc
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
component extends="coldbox.system.testing.BaseTestCase" {

variables.envUtil = new coldbox.system.core.delegates.Env();


function beforeAll(){
super.beforeAll();
try{
variables.envUtil = new coldbox.system.core.delegates.Env();
} catch( any e ){
// Coldbox 6
variables.envUtil = new coldbox.system.core.util.Util();
}

var qUser = queryExecute( "SELECT * from users WHERE email = 'info@ortussolutions.com'" );
if ( !qUser.recordCount ) {
queryExecute(
Expand Down

0 comments on commit 58ec101

Please sign in to comment.