File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ public function testCachePage()
87
87
$ this ->controller = new Controller ();
88
88
$ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
89
89
90
- $ this ->assertNull ($ this ->controller ->cachePage (10 ));
90
+ $ method = $ this ->getPrivateMethodInvoker ($ this ->controller , 'cachePage ' );
91
+ $ this ->assertNull ($ method (10 ));
91
92
}
92
93
93
94
public function testValidate ()
@@ -97,7 +98,8 @@ public function testValidate()
97
98
$ this ->controller ->initController ($ this ->request , $ this ->response , $ this ->logger );
98
99
99
100
// and that we can attempt validation, with no rules
100
- $ this ->assertFalse ($ this ->controller ->validate ([]));
101
+ $ method = $ this ->getPrivateMethodInvoker ($ this ->controller , 'validate ' );
102
+ $ this ->assertFalse ($ method ([]));
101
103
}
102
104
103
105
//--------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments