File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2525 */
2626class ServerResponseTest extends TestCase
2727{
28+ protected function setUp ()
29+ {
30+ // Make sure the current action in the Request class is unset.
31+ TestHelpers::setStaticProperty (Request::class, 'current_action ' , null );
32+ }
33+
2834 public function sendMessageOk ()
2935 {
3036 return '{
@@ -193,6 +199,7 @@ public function testGetUpdatesEmpty()
193199
194200 public function getUserProfilePhotos ()
195201 {
202+ TestHelpers::setStaticProperty (Request::class, 'current_action ' , 'getUserProfilePhotos ' );
196203 return '{
197204 "ok":true,
198205 "result":{
@@ -238,6 +245,7 @@ public function testGetUserProfilePhotos()
238245
239246 public function getFile ()
240247 {
248+ TestHelpers::setStaticProperty (Request::class, 'current_action ' , 'getFile ' );
241249 return '{
242250 "ok":true,
243251 "result":{
@@ -301,6 +309,7 @@ public function testSetGeneralTestFakeResponse()
301309
302310 public function getStickerSet ()
303311 {
312+ TestHelpers::setStaticProperty (Request::class, 'current_action ' , 'getStickerSet ' );
304313 return '{
305314 "ok":true,
306315 "result":{
You can’t perform that action at this time.
0 commit comments