Skip to content

Commit 101897c

Browse files
committed
Cover change
1 parent 12dfb49 commit 101897c

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

app/code/Magento/Directory/Setup/Patch/Data/AddDataForBulgaria.php

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,39 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Directory\Setup\Patch\Data;
109

1110
use Magento\Directory\Setup\DataInstaller;
12-
use Magento\Framework\App\ResourceConnection;
11+
use Magento\Directory\Setup\DataInstallerFactory;
1312
use Magento\Framework\Setup\ModuleDataSetupInterface;
1413
use Magento\Framework\Setup\Patch\DataPatchInterface;
15-
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1614

1715
/**
1816
* Add Bulgaria States
19-
*
20-
* Class AddDataForBulgaria
2117
*/
22-
class AddDataForBulgaria implements DataPatchInterface, PatchVersionInterface
18+
class AddDataForBulgaria implements DataPatchInterface
2319
{
2420
/**
2521
* @var ModuleDataSetupInterface
2622
*/
2723
private $moduleDataSetup;
2824

2925
/**
30-
* @var \Magento\Directory\Setup\DataInstallerFactory
26+
* @var DataInstallerFactory
3127
*/
3228
private $dataInstallerFactory;
3329

3430
/**
3531
* AddDataForBulgaria constructor.
3632
*
3733
* @param ModuleDataSetupInterface $moduleDataSetup
38-
* @param \Magento\Directory\Setup\DataInstallerFactory $dataInstallerFactory
34+
* @param DataInstallerFactory $dataInstallerFactory
3935
*/
4036
public function __construct(
4137
ModuleDataSetupInterface $moduleDataSetup,
42-
\Magento\Directory\Setup\DataInstallerFactory $dataInstallerFactory
38+
DataInstallerFactory $dataInstallerFactory
4339
) {
4440
$this->moduleDataSetup = $moduleDataSetup;
4541
$this->dataInstallerFactory = $dataInstallerFactory;
@@ -56,6 +52,8 @@ public function apply()
5652
$this->moduleDataSetup->getConnection(),
5753
$this->getDataForBulgaria()
5854
);
55+
56+
return $this;
5957
}
6058

6159
/**
@@ -107,14 +105,6 @@ public static function getDependencies()
107105
];
108106
}
109107

110-
/**
111-
* @inheritdoc
112-
*/
113-
public static function getVersion()
114-
{
115-
return '';
116-
}
117-
118108
/**
119109
* @inheritdoc
120110
*/

dev/tests/integration/testsuite/Magento/Directory/Model/RegionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public function getCountryIdDataProvider():array
5656
['countryId' => 'CO'],
5757
['countryId' => 'MX'],
5858
['countryId' => 'PL'],
59-
['countryId' => 'IT']
59+
['countryId' => 'IT'],
60+
['countryId' => 'BG']
6061
];
6162
}
6263
}

0 commit comments

Comments
 (0)