Skip to content

Commit cb858f7

Browse files
committed
Replace the usage of Zend_Json::encode in the setup marketplace controller tests
1 parent e12a17a commit cb858f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: setup/src/Magento/Setup/Test/Unit/Controller/MarketplaceTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testSaveAuthJsonAction()
3939
$this->packagesAuth
4040
->expects($this->once())
4141
->method('checkCredentials')
42-
->will($this->returnValue(\Zend_Json::encode(['success' => true])));
42+
->will($this->returnValue(json_encode(['success' => true])));
4343
$this->packagesAuth
4444
->expects($this->once())
4545
->method('saveAuthJson')
@@ -75,7 +75,7 @@ public function testCheckAuthAction()
7575
$this->packagesAuth
7676
->expects($this->once())
7777
->method('checkCredentials')
78-
->will($this->returnValue(\Zend_Json::encode(['success' => true])));
78+
->will($this->returnValue(json_encode(['success' => true])));
7979
$jsonModel = $this->controller->checkAuthAction();
8080
$this->assertInstanceOf(\Zend\View\Model\ViewModel::class, $jsonModel);
8181
$variables = $jsonModel->getVariables();

0 commit comments

Comments
 (0)