@@ -85,27 +85,27 @@ protected function setUp(): void
85
85
->getMock ();
86
86
$ this ->contextMock = $ this ->createMock (Context::class);
87
87
$ this ->registryMock = $ this ->createMock (Registry::class);
88
- $ this ->userFactoryMock ->expects ($ this ->any ())
88
+ $ this ->userFactoryMock ->expects ($ this ->once ())
89
89
->method ('create ' )
90
90
->willReturn ($ this ->userModelMock );
91
91
$ responseMock = $ this ->createMock (ResponseInterface::class);
92
92
$ redirectMock = $ this ->createMock (RedirectInterface::class);
93
- $ this ->contextMock ->expects ($ this ->any ())
93
+ $ this ->contextMock ->expects ($ this ->once ())
94
94
->method ('getRequest ' )
95
95
->willReturn ($ this ->requestMock );
96
- $ this ->contextMock ->expects ($ this ->any ())
96
+ $ this ->contextMock ->expects ($ this ->once ())
97
97
->method ('getMessageManager ' )
98
98
->willReturn ($ this ->messageManagerMock );
99
- $ this ->contextMock ->expects ($ this ->any ())
99
+ $ this ->contextMock ->expects ($ this ->once ())
100
100
->method ('getResponse ' )
101
101
->willReturn ($ responseMock );
102
- $ this ->contextMock ->expects ($ this ->any ())
102
+ $ this ->contextMock ->expects ($ this ->once ())
103
103
->method ('getRedirect ' )
104
104
->willReturn ($ redirectMock );
105
- $ this ->contextMock ->expects ($ this ->any ())
105
+ $ this ->contextMock ->expects ($ this ->once ())
106
106
->method ('getSession ' )
107
107
->willReturn ($ this ->sessionMock );
108
- $ this ->contextMock ->expects ($ this ->any ())
108
+ $ this ->contextMock ->expects ($ this ->once ())
109
109
->method ('getObjectManager ' )
110
110
->willReturn ($ this ->objectManagerMock );
111
111
$ this ->controller = $ this ->getMockBuilder (Save::class)
0 commit comments