Skip to content

Commit 797d709

Browse files
committed
ACP2E-3657: Weak Password Management
1 parent 751d6df commit 797d709

File tree

1 file changed

+7
-7
lines changed
  • app/code/Magento/User/Test/Unit/Controller/Adminhtml/User

1 file changed

+7
-7
lines changed

app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/SaveTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,27 +85,27 @@ protected function setUp(): void
8585
->getMock();
8686
$this->contextMock = $this->createMock(Context::class);
8787
$this->registryMock = $this->createMock(Registry::class);
88-
$this->userFactoryMock->expects($this->any())
88+
$this->userFactoryMock->expects($this->once())
8989
->method('create')
9090
->willReturn($this->userModelMock);
9191
$responseMock = $this->createMock(ResponseInterface::class);
9292
$redirectMock = $this->createMock(RedirectInterface::class);
93-
$this->contextMock->expects($this->any())
93+
$this->contextMock->expects($this->once())
9494
->method('getRequest')
9595
->willReturn($this->requestMock);
96-
$this->contextMock->expects($this->any())
96+
$this->contextMock->expects($this->once())
9797
->method('getMessageManager')
9898
->willReturn($this->messageManagerMock);
99-
$this->contextMock->expects($this->any())
99+
$this->contextMock->expects($this->once())
100100
->method('getResponse')
101101
->willReturn($responseMock);
102-
$this->contextMock->expects($this->any())
102+
$this->contextMock->expects($this->once())
103103
->method('getRedirect')
104104
->willReturn($redirectMock);
105-
$this->contextMock->expects($this->any())
105+
$this->contextMock->expects($this->once())
106106
->method('getSession')
107107
->willReturn($this->sessionMock);
108-
$this->contextMock->expects($this->any())
108+
$this->contextMock->expects($this->once())
109109
->method('getObjectManager')
110110
->willReturn($this->objectManagerMock);
111111
$this->controller = $this->getMockBuilder(Save::class)

0 commit comments

Comments
 (0)