Skip to content

Commit

Permalink
Replace the usage of Zend_Json::encode in the setup marketplace contr…
Browse files Browse the repository at this point in the history
…oller tests
  • Loading branch information
dmanners committed Jul 26, 2017
1 parent e12a17a commit cb858f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit cb858f7

Please sign in to comment.