File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ component extends="coldbox.system.testing.BaseTestCase" {
16
16
var mockBox = getMockBox ();
17
17
var applicationHelper = [];
18
18
19
- super .setup ();
19
+ // Load ColdBox?
20
+ if ( this .loadColdBox ) {
21
+ super .setup ();
22
+ }
20
23
21
24
// Check for interceptor else throw exception
22
25
if ( NOT structKeyExists ( md , " interceptor" ) ) {
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ component extends="coldbox.system.testing.BaseTestCase" {
15
15
var md = getMetadata ( this );
16
16
var mockBox = getMockBox ();
17
17
18
- super .setup ();
18
+ // Load ColdBox?
19
+ if ( this .loadColdBox ) {
20
+ super .setup ();
21
+ }
19
22
20
23
// Check for model path annotation, and use it if declared.
21
24
if ( structKeyExists ( md , " model" ) ) {
Original file line number Diff line number Diff line change @@ -144,9 +144,6 @@ component extends="testbox.system.compat.framework.TestCase" accessors="true" {
144
144
145
145
structDelete ( request , " _lastInvalidEvent" );
146
146
}
147
-
148
- // make sure all references to the request context are using the MockContext
149
- getRequestContext ();
150
147
}
151
148
152
149
/**
You can’t perform that action at this time.
0 commit comments