File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/CatalogSearch/Test/Unit/Controller/Advanced Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ public function testUrlSetOnException()
59
59
$ redirectResultMock ->expects ($ this ->once ())
60
60
->method ('setUrl ' );
61
61
62
- $ resultRedirectFactoryMock = $ this ->getMockBuilder (\Magento \Framework \Controller \Result \RedirectFactory::class)
62
+ $ redirectFactoryMock = $ this ->getMockBuilder (\Magento \Framework \Controller \Result \RedirectFactory::class)
63
63
->setMethods (['create ' ])
64
64
->disableOriginalConstructor ()
65
65
->getMock ();
66
66
67
- $ resultRedirectFactoryMock ->expects ($ this ->any ())
67
+ $ redirectFactoryMock ->expects ($ this ->any ())
68
68
->method ('create ' )
69
69
->willReturn ($ redirectResultMock );
70
70
@@ -111,7 +111,7 @@ public function testUrlSetOnException()
111
111
->willReturn ($ eventManagerMock );
112
112
$ contextMock ->expects ($ this ->any ())
113
113
->method ('getResultRedirectFactory ' )
114
- ->willReturn ($ resultRedirectFactoryMock );
114
+ ->willReturn ($ redirectFactoryMock );
115
115
116
116
$ urlMock = $ this ->createMock (\Magento \Framework \Url::class);
117
117
$ urlMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments