Skip to content

Commit 3615477

Browse files
committed
MAGETWO-62624: Order total still displays when no related option is selected
1 parent e096031 commit 3615477

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Create extends Block
121121
public function getItemsBlock()
122122
{
123123
return $this->blockFactory->create(
124-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Items',
124+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Items::class,
125125
['element' => $this->_rootElement->find($this->itemsBlock, Locator::SELECTOR_CSS)]
126126
);
127127
}
@@ -134,7 +134,7 @@ public function getItemsBlock()
134134
public function getBillingAddressBlock()
135135
{
136136
return $this->blockFactory->create(
137-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Billing\Address',
137+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Billing\Address::class,
138138
['element' => $this->_rootElement->find($this->billingAddressBlock, Locator::SELECTOR_CSS)]
139139
);
140140
}
@@ -147,7 +147,7 @@ public function getBillingAddressBlock()
147147
protected function getShippingAddressBlock()
148148
{
149149
return $this->blockFactory->create(
150-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Shipping\Address',
150+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Shipping\Address::class,
151151
['element' => $this->_rootElement->find($this->shippingAddressBlock, Locator::SELECTOR_CSS)]
152152
);
153153
}
@@ -160,7 +160,7 @@ protected function getShippingAddressBlock()
160160
protected function getBillingMethodBlock()
161161
{
162162
return $this->blockFactory->create(
163-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Billing\Method',
163+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Billing\Method::class,
164164
['element' => $this->_rootElement->find($this->billingMethodBlock, Locator::SELECTOR_CSS)]
165165
);
166166
}
@@ -173,7 +173,7 @@ protected function getBillingMethodBlock()
173173
protected function getShippingMethodBlock()
174174
{
175175
return $this->blockFactory->create(
176-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Shipping\Method',
176+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Shipping\Method::class,
177177
['element' => $this->_rootElement->find($this->shippingMethodBlock, Locator::SELECTOR_CSS)]
178178
);
179179
}
@@ -186,7 +186,7 @@ protected function getShippingMethodBlock()
186186
public function getTotalsBlock()
187187
{
188188
return $this->blockFactory->create(
189-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Totals',
189+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Totals::class,
190190
['element' => $this->_rootElement->find($this->totalsBlock, Locator::SELECTOR_CSS)]
191191
);
192192
}
@@ -199,7 +199,7 @@ public function getTotalsBlock()
199199
public function getTemplateBlock()
200200
{
201201
return $this->blockFactory->create(
202-
'Magento\Backend\Test\Block\Template',
202+
\Magento\Backend\Test\Block\Template::class,
203203
['element' => $this->_rootElement->find($this->templateBlock, Locator::SELECTOR_XPATH)]
204204
);
205205
}
@@ -212,7 +212,7 @@ public function getTemplateBlock()
212212
public function getGridBlock()
213213
{
214214
return $this->blockFactory->create(
215-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Search\Grid',
215+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Search\Grid::class,
216216
['element' => $this->_rootElement->find($this->gridBlock, Locator::SELECTOR_CSS)]
217217
);
218218
}
@@ -225,7 +225,7 @@ public function getGridBlock()
225225
public function getAccountBlock()
226226
{
227227
return $this->blockFactory->create(
228-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Form\Account',
228+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Form\Account::class,
229229
['element' => $this->_rootElement->find($this->accountInformationBlock, Locator::SELECTOR_CSS)]
230230
);
231231
}
@@ -250,7 +250,7 @@ public function updateProductsData(array $products)
250250
{
251251
/** @var \Magento\Sales\Test\Block\Adminhtml\Order\Create\Items $items */
252252
$items = $this->blockFactory->create(
253-
'Magento\Sales\Test\Block\Adminhtml\Order\Create\Items',
253+
\Magento\Sales\Test\Block\Adminhtml\Order\Create\Items::class,
254254
['element' => $this->_rootElement->find($this->itemsBlock)]
255255
);
256256
foreach ($products as $product) {

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create/Totals.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\Sales\Test\Block\Adminhtml\Order\Create;
88

9-
use Magento\Framework\DataObject;
109
use Magento\Mtf\Block\Block;
1110

1211
/**

0 commit comments

Comments
 (0)