File tree Expand file tree Collapse file tree 5 files changed +8
-0
lines changed
dev/tests/unit/testsuite/Magento/Checkout/Controller Expand file tree Collapse file tree 5 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ public function setUp()
72
72
->getMock ();
73
73
$ resultRedirectFactoryMock = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\RedirectFactory ' )
74
74
->disableOriginalConstructor ()
75
+ ->setMethods (['create ' ])
75
76
->getMock ();
76
77
$ resultRedirectFactoryMock ->expects ($ this ->any ())
77
78
->method ('create ' )
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public function testGoBack()
62
62
->getMock ();
63
63
$ resultRedirectFactoryMock = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\RedirectFactory ' )
64
64
->disableOriginalConstructor ()
65
+ ->setMethods (['create ' ])
65
66
->getMock ();
66
67
$ resultRedirectFactoryMock ->expects ($ this ->any ())
67
68
->method ('create ' )
Original file line number Diff line number Diff line change @@ -122,13 +122,15 @@ public function setUp()
122
122
123
123
$ resultPageFactoryMock = $ this ->getMockBuilder ('Magento\Framework\View\Result\PageFactory ' )
124
124
->disableOriginalConstructor ()
125
+ ->setMethods (['create ' ])
125
126
->getMock ();
126
127
$ resultPageFactoryMock ->expects ($ this ->any ())
127
128
->method ('create ' )
128
129
->willReturn ($ this ->resultPageMock );
129
130
130
131
$ resultRedirectFactoryMock = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\RedirectFactory ' )
131
132
->disableOriginalConstructor ()
133
+ ->setMethods (['create ' ])
132
134
->getMock ();
133
135
$ resultRedirectFactoryMock ->expects ($ this ->any ())
134
136
->method ('create ' )
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ protected function setUp()
134
134
->getMock ();
135
135
$ resultRawFactory = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\RawFactory ' )
136
136
->disableOriginalConstructor ()
137
+ ->setMethods (['create ' ])
137
138
->getMock ();
138
139
$ resultRawFactory ->expects ($ this ->any ())
139
140
->method ('create ' )
@@ -144,6 +145,7 @@ protected function setUp()
144
145
->getMock ();
145
146
$ resultJsonFactory = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\JsonFactory ' )
146
147
->disableOriginalConstructor ()
148
+ ->setMethods (['create ' ])
147
149
->getMock ();
148
150
$ resultJsonFactory ->expects ($ this ->any ())
149
151
->method ('create ' )
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ protected function setUp()
135
135
->getMock ();
136
136
$ resultRawFactory = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\RawFactory ' )
137
137
->disableOriginalConstructor ()
138
+ ->setMethods (['create ' ])
138
139
->getMock ();
139
140
$ resultRawFactory ->expects ($ this ->any ())
140
141
->method ('create ' )
@@ -145,6 +146,7 @@ protected function setUp()
145
146
->getMock ();
146
147
$ resultJsonFactory = $ this ->getMockBuilder ('Magento\Framework\Controller\Result\JsonFactory ' )
147
148
->disableOriginalConstructor ()
149
+ ->setMethods (['create ' ])
148
150
->getMock ();
149
151
$ resultJsonFactory ->expects ($ this ->any ())
150
152
->method ('create ' )
You can’t perform that action at this time.
0 commit comments