Skip to content

Commit 8e7f784

Browse files
author
Yu Tang
committed
MAGETWO-40252: Elimination of Layer supertype for Action controllers
- Fix error caused by merge
1 parent 9fff786 commit 8e7f784

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/code/Magento/Customer/Controller/Plugin/Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function aroundDispatch(
5050
$pattern = '/^(' . implode('|', $this->allowedActions) . ')$/i';
5151

5252
if (!preg_match($pattern, $action)) {
53-
if (!$this->session->authenticate($subject)) {
53+
if (!$this->session->authenticate()) {
5454
$subject->getActionFlag()->set('', ActionInterface::FLAG_NO_DISPATCH, true);
5555
}
5656
} else {

app/code/Magento/Customer/Test/Unit/Controller/Plugin/AccountTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ public function testAroundDispatch(
112112
} else {
113113
$this->session->expects($this->once())
114114
->method('authenticate')
115-
->with($this->subject)
116115
->willReturn($isAuthenticated);
117116
if (!$isAuthenticated) {
118117
$this->subject->expects($this->once())

0 commit comments

Comments
 (0)