Skip to content

Commit 9db337c

Browse files
author
Natalia Momotenko
committed
MAGETWO-32669: Incorrect style of persistent inscription
1 parent b774dd9 commit 9db337c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

app/code/Magento/Persistent/Block/Header/Additional.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ public function getHref()
7171
protected function _toHtml()
7272
{
7373
if ($this->_persistentSessionHelper->getSession()->getCustomerId()) {
74-
$persistentName = $this->escapeHtml(
75-
$this->_customerViewHelper->getCustomerName(
76-
$this->customerRepository->getById($this->_persistentSessionHelper->getSession()->getCustomerId())
77-
)
78-
);
7974
return '<span><a ' . $this->getLinkAttributes() . ' >' . __('Not you?')
8075
. '</a></span>';
8176
}

dev/tests/unit/testsuite/Magento/Persistent/Block/Header/AdditionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function testToHtml($customerId)
338338
->with($customerName)
339339
->willReturn($customerName);
340340

341-
$this->assertEquals('<span><a >(Not customer-name?)</a></span>', $this->additional->toHtml());
341+
$this->assertEquals('<span><a >(Not you?)</a></span>', $this->additional->toHtml());
342342
} else {
343343
$this->assertEquals('', $this->additional->toHtml());
344344
}

0 commit comments

Comments
 (0)