Skip to content

Commit 7dd8d4c

Browse files
author
Oleksii Korshenko
committed
MAGETWO-64898: [GitHub][PR] Remove Zend_Json from Customer module magento#8617
- fixed typo in unit test - added method description
1 parent 08edf2f commit 7dd8d4c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

app/code/Magento/Customer/Block/Account/AuthenticationPopup.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public function getConfig()
6161
}
6262

6363
/**
64+
* Returns popup config in JSON format.
65+
*
66+
* Added in scope of https://github.com/magento/magento2/pull/8617
67+
*
6468
* @return bool|string
6569
*/
6670
public function getSerializedConfig()

app/code/Magento/Customer/Test/Unit/Block/Account/AuthenticationPopupTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class AuthenticationPopupTest extends \PHPUnit_Framework_TestCase
3232
private $urlBuilderMock;
3333

3434
/** @var \Magento\Framework\Serialize\Serializer\Json|\PHPUnit_Framework_MockObject_MockObject */
35-
private $serilizerMock;
35+
private $serializerMock;
3636

3737
protected function setUp()
3838
{
@@ -75,13 +75,13 @@ function ($string) {
7575
->method('getEscaper')
7676
->willReturn($escaperMock);
7777

78-
$this->serilizerMock = $this->getMockBuilder(\Magento\Framework\Serialize\Serializer\Json::class)
78+
$this->serializerMock = $this->getMockBuilder(\Magento\Framework\Serialize\Serializer\Json::class)
7979
->getMock();
8080

8181
$this->model = new AuthenticationPopup(
8282
$this->contextMock,
8383
[],
84-
$this->serilizerMock
84+
$this->serializerMock
8585
);
8686
}
8787

@@ -221,7 +221,7 @@ public function testGetSerializedConfig($isAutocomplete, $baseUrl, $registerUrl,
221221
['customer/account/forgotpassword', [], $forgotUrl],
222222
]
223223
);
224-
$this->serilizerMock->expects($this->any())->method('serialize')
224+
$this->serializerMock->expects($this->any())->method('serialize')
225225
->willReturn(
226226
json_encode($this->model->getConfig())
227227
);

0 commit comments

Comments
 (0)