Skip to content

Commit 1e2f5ea

Browse files
author
Yurii Torbyk
committed
MAGETWO-33058: Refactor Checkout module
1 parent fd339f9 commit 1e2f5ea

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

dev/tests/unit/testsuite/Magento/Checkout/Controller/Cart/ConfigureTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function setUp()
7272
->getMock();
7373
$resultRedirectFactoryMock = $this->getMockBuilder('Magento\Framework\Controller\Result\RedirectFactory')
7474
->disableOriginalConstructor()
75+
->setMethods(['create'])
7576
->getMock();
7677
$resultRedirectFactoryMock->expects($this->any())
7778
->method('create')

dev/tests/unit/testsuite/Magento/Checkout/Controller/CartTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function testGoBack()
6262
->getMock();
6363
$resultRedirectFactoryMock = $this->getMockBuilder('Magento\Framework\Controller\Result\RedirectFactory')
6464
->disableOriginalConstructor()
65+
->setMethods(['create'])
6566
->getMock();
6667
$resultRedirectFactoryMock->expects($this->any())
6768
->method('create')

dev/tests/unit/testsuite/Magento/Checkout/Controller/Onepage/IndexTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,15 @@ public function setUp()
122122

123123
$resultPageFactoryMock = $this->getMockBuilder('Magento\Framework\View\Result\PageFactory')
124124
->disableOriginalConstructor()
125+
->setMethods(['create'])
125126
->getMock();
126127
$resultPageFactoryMock->expects($this->any())
127128
->method('create')
128129
->willReturn($this->resultPageMock);
129130

130131
$resultRedirectFactoryMock = $this->getMockBuilder('Magento\Framework\Controller\Result\RedirectFactory')
131132
->disableOriginalConstructor()
133+
->setMethods(['create'])
132134
->getMock();
133135
$resultRedirectFactoryMock->expects($this->any())
134136
->method('create')

dev/tests/unit/testsuite/Magento/Checkout/Controller/Onepage/SaveBillingTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ protected function setUp()
134134
->getMock();
135135
$resultRawFactory = $this->getMockBuilder('Magento\Framework\Controller\Result\RawFactory')
136136
->disableOriginalConstructor()
137+
->setMethods(['create'])
137138
->getMock();
138139
$resultRawFactory->expects($this->any())
139140
->method('create')
@@ -144,6 +145,7 @@ protected function setUp()
144145
->getMock();
145146
$resultJsonFactory = $this->getMockBuilder('Magento\Framework\Controller\Result\JsonFactory')
146147
->disableOriginalConstructor()
148+
->setMethods(['create'])
147149
->getMock();
148150
$resultJsonFactory->expects($this->any())
149151
->method('create')

dev/tests/unit/testsuite/Magento/Checkout/Controller/Onepage/SaveShippingTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ protected function setUp()
135135
->getMock();
136136
$resultRawFactory = $this->getMockBuilder('Magento\Framework\Controller\Result\RawFactory')
137137
->disableOriginalConstructor()
138+
->setMethods(['create'])
138139
->getMock();
139140
$resultRawFactory->expects($this->any())
140141
->method('create')
@@ -145,6 +146,7 @@ protected function setUp()
145146
->getMock();
146147
$resultJsonFactory = $this->getMockBuilder('Magento\Framework\Controller\Result\JsonFactory')
147148
->disableOriginalConstructor()
149+
->setMethods(['create'])
148150
->getMock();
149151
$resultJsonFactory->expects($this->any())
150152
->method('create')

0 commit comments

Comments
 (0)