Skip to content

Commit c87130d

Browse files
author
Yauhen_Lyskavets
committed
MAGETWO-95186: [2.3] Incorrect table rates shipping charge at check out with cart price rule
- DB compare tests stabilization.
1 parent 0599eeb commit c87130d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/OfflineShippingSampleData/Model/Tablerate.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Framework\Setup\SampleData\Context as SampleDataContext;
99
use Magento\Framework\App\ObjectManager;
1010
use Magento\Config\App\Config\Type\System as SystemConfig;
11+
use Magento\OfflineShipping\Model\Carrier\Tablerate as CarrierTablerate;
1112

1213
/**
1314
* Class Tablerate
@@ -128,7 +129,7 @@ public function install(array $fixtures)
128129
'dest_country_id' => $data['country'],
129130
'dest_region_id' => $regionId,
130131
'dest_zip' => $data['zip'],
131-
'condition_name' => 'package_value',
132+
'condition_name' => CarrierTablerate::CONDITION_CODE_PACKAGE_VALUE_WITH_DISCOUNT,
132133
'condition_value' => $data['order_subtotal'],
133134
'price' => $data['price'],
134135
'cost' => 0,
@@ -146,7 +147,9 @@ public function install(array $fixtures)
146147
}
147148

148149
$this->configWriter->save('carriers/tablerate/active', 1);
149-
$this->configWriter->save('carriers/tablerate/condition_name', 'package_value');
150+
$this->configWriter->save(
151+
'carriers/tablerate/condition_name', CarrierTablerate::CONDITION_CODE_PACKAGE_VALUE_WITH_DISCOUNT
152+
);
150153
$this->cacheTypeList->cleanType('config');
151154
$this->systemConfig->clean();
152155
}

0 commit comments

Comments
 (0)