diff --git a/setup/src/Magento/Setup/Test/Unit/Controller/MarketplaceTest.php b/setup/src/Magento/Setup/Test/Unit/Controller/MarketplaceTest.php index 93fbc103852fc..02583a68b6e0e 100644 --- a/setup/src/Magento/Setup/Test/Unit/Controller/MarketplaceTest.php +++ b/setup/src/Magento/Setup/Test/Unit/Controller/MarketplaceTest.php @@ -39,7 +39,7 @@ public function testSaveAuthJsonAction() $this->packagesAuth ->expects($this->once()) ->method('checkCredentials') - ->will($this->returnValue(\Zend_Json::encode(['success' => true]))); + ->will($this->returnValue(json_encode(['success' => true]))); $this->packagesAuth ->expects($this->once()) ->method('saveAuthJson') @@ -75,7 +75,7 @@ public function testCheckAuthAction() $this->packagesAuth ->expects($this->once()) ->method('checkCredentials') - ->will($this->returnValue(\Zend_Json::encode(['success' => true]))); + ->will($this->returnValue(json_encode(['success' => true]))); $jsonModel = $this->controller->checkAuthAction(); $this->assertInstanceOf(\Zend\View\Model\ViewModel::class, $jsonModel); $variables = $jsonModel->getVariables();