Skip to content

Commit ae4e7a9

Browse files
committed
ACP2E-147: Unsubscribe or subscriber newsletter not working on customer save for other role in admin
1 parent 9217dc3 commit ae4e7a9

File tree

1 file changed

+0
-9
lines changed
  • app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index

1 file changed

+0
-9
lines changed

app/code/Magento/Customer/Test/Unit/Controller/Adminhtml/Index/SaveTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,6 @@ public function testExecuteWithExistentCustomer()
495495
->with($customerMock, $customerEmail)
496496
->willReturnSelf();
497497

498-
$this->authorizationMock->expects($this->once())
499-
->method('isAllowed')
500-
->with(null)
501-
->willReturn(true);
502-
503498
$this->subscriptionManager->expects($this->once())
504499
->method($subscriptionStatus ? 'subscribeCustomer' : 'unsubscribeCustomer')
505500
->with($customerId, $subscriptionStore);
@@ -670,10 +665,6 @@ public function testExecuteWithNewCustomer()
670665
->method('createAccount')
671666
->with($customerMock, null, '')
672667
->willReturn($customerMock);
673-
$this->authorizationMock->expects($this->once())
674-
->method('isAllowed')
675-
->with(null)
676-
->willReturn(true);
677668
$this->subscriptionManager->expects($this->once())
678669
->method($subscriptionStatus ? 'subscribeCustomer' : 'unsubscribeCustomer')
679670
->with($customerId, $subscriptionStore);

0 commit comments

Comments
 (0)