File tree 1 file changed +2
-2
lines changed
setup/src/Magento/Setup/Test/Unit/Controller
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function testSaveAuthJsonAction()
39
39
$ this ->packagesAuth
40
40
->expects ($ this ->once ())
41
41
->method ('checkCredentials ' )
42
- ->will ($ this ->returnValue (\Zend_Json:: encode (['success ' => true ])));
42
+ ->will ($ this ->returnValue (json_encode (['success ' => true ])));
43
43
$ this ->packagesAuth
44
44
->expects ($ this ->once ())
45
45
->method ('saveAuthJson ' )
@@ -75,7 +75,7 @@ public function testCheckAuthAction()
75
75
$ this ->packagesAuth
76
76
->expects ($ this ->once ())
77
77
->method ('checkCredentials ' )
78
- ->will ($ this ->returnValue (\Zend_Json:: encode (['success ' => true ])));
78
+ ->will ($ this ->returnValue (json_encode (['success ' => true ])));
79
79
$ jsonModel = $ this ->controller ->checkAuthAction ();
80
80
$ this ->assertInstanceOf (\Zend \View \Model \ViewModel::class, $ jsonModel );
81
81
$ variables = $ jsonModel ->getVariables ();
You can’t perform that action at this time.
0 commit comments