-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
428 - Test coverage: GetAvailableShippingMethodsTest
- Loading branch information
1 parent
4ed4d59
commit 89a8621
Showing
7 changed files
with
47 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
...sts/integration/testsuite/Magento/Checkout/_files/disable_all_active_shipping_methods.php
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...ration/testsuite/Magento/Checkout/_files/disable_all_active_shipping_methods_rollback.php
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...integration/testsuite/Magento/OfflineShipping/_files/disable_offline_shipping_methods.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Magento\Framework\App\Config\Storage\Writer; | ||
use Magento\Framework\App\Config\Storage\WriterInterface; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
use Magento\Framework\App\Config\ScopeConfigInterface; | ||
|
||
$objectManager = Bootstrap::getObjectManager(); | ||
/** @var Writer $configWriter */ | ||
$configWriter = $objectManager->get(WriterInterface::class); | ||
|
||
$configWriter->save('carriers/flatrate/active', 0); | ||
$configWriter->save('carriers/tablerate/active', 0); | ||
$configWriter->save('carriers/freeshipping/active', 0); | ||
|
||
$scopeConfig = $objectManager->get(ScopeConfigInterface::class); | ||
$scopeConfig->clean(); |
18 changes: 18 additions & 0 deletions
18
...on/testsuite/Magento/OfflineShipping/_files/disable_offline_shipping_methods_rollback.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Magento\Framework\App\Config\Storage\Writer; | ||
use Magento\Framework\App\Config\Storage\WriterInterface; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
|
||
$objectManager = Bootstrap::getObjectManager(); | ||
/** @var Writer $configWriter */ | ||
$configWriter = $objectManager->create(WriterInterface::class); | ||
|
||
$configWriter->delete('carriers/flatrate/active'); | ||
$configWriter->delete('carriers/tablerate/active'); | ||
$configWriter->delete('carriers/freeshipping/active'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters