File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
test-harness/tests/specs/unit Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,13 @@ component extends="coldbox.system.testing.BaseInterceptorTest" interceptor="cbse
18
18
.$( " getAppRootPath" , expandPath ( " /root" ) )
19
19
.$( " getColdboxSettings" , {
20
20
" version" : " 6.0.0"
21
- }, false );
21
+ }, false );
22
+
23
+ mockController
24
+ .$( " getSetting" )
25
+ .$args ( " modules" )
26
+ .$results ( [] );
27
+
22
28
security = interceptor ;
23
29
security .setInvalidEventHandler ( ' ' );
24
30
settings = {
@@ -114,7 +120,8 @@ component extends="coldbox.system.testing.BaseInterceptorTest" interceptor="cbse
114
120
.$args ( settings .validator )
115
121
.$results ( wirebox .getInstance ( settings .validator ) );
116
122
117
- security .configure ();
123
+ security .afterAspectsLoad ();
124
+
118
125
expect (
119
126
security .getValidator (
120
127
createMock ( " coldbox.system.web.context.RequestContext" ).$( " getCurrentModule" , " " )
@@ -135,7 +142,7 @@ component extends="coldbox.system.testing.BaseInterceptorTest" interceptor="cbse
135
142
.$results ( createStub () );
136
143
137
144
expect ( function (){
138
- security .configure ();
145
+ security .afterAspectsLoad ();
139
146
} ).toThrow ( " Security.ValidatorMethodException" );
140
147
} );
141
148
You can’t perform that action at this time.
0 commit comments