Skip to content

Commit b1d50f0

Browse files
committed
ensure super setup is always executed
1 parent f17ac4b commit b1d50f0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

system/testing/BaseInterceptorTest.cfc

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
1616
var mockBox = getMockBox();
1717
var applicationHelper = [];
1818

19-
// Load ColdBox?
20-
if ( this.loadColdBox ) {
21-
super.setup();
22-
}
19+
super.setup();
2320

2421
// Check for interceptor else throw exception
2522
if ( NOT structKeyExists( md, "interceptor" ) ) {

system/testing/BaseModelTest.cfc

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
1515
var md = getMetadata( this );
1616
var mockBox = getMockBox();
1717

18-
// Load ColdBox?
19-
if ( this.loadColdBox ) {
20-
super.setup();
21-
}
18+
super.setup();
2219

2320
// Check for model path annotation, and use it if declared.
2421
if ( structKeyExists( md, "model" ) ) {

0 commit comments

Comments
 (0)