Skip to content

Commit d4fe04f

Browse files
author
Sam Butler-Thompson
committed
Remove additional docs added automatically, updated unit test with new constructor class.
1 parent 5e123f6 commit d4fe04f

File tree

10 files changed

+9
-18
lines changed

10 files changed

+9
-18
lines changed

Component/AdminRoles.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
use Magento\Authorization\Model\Acl\Role\Group as RoleGroup;
1111

1212
/**
13-
* Class AdminRoles
14-
* @package CtiDigital\Configurator\Component
1513
* @SuppressWarnings(PHPMD.ShortVariable)
1614
*/
1715
class AdminRoles implements ComponentInterface

Component/AdminUsers.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use CtiDigital\Configurator\Exception\ComponentException;
99

1010
/**
11-
* Class AdminUsers
12-
* @package CtiDigital\Configurator\Component
1311
* @SuppressWarnings(PHPMD.ShortVariable)
1412
*/
1513
class AdminUsers implements ComponentInterface

Component/ApiIntegrations.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
use CtiDigital\Configurator\Exception\ComponentException;
1111

1212
/**
13-
* Class ApiIntegrations
14-
* @package CtiDigital\Configurator\Component
1513
* @SuppressWarnings(PHPMD.ShortVariable)
1614
*/
1715
class ApiIntegrations implements ComponentInterface

Component/CatalogPriceRules/CatalogPriceRulesProcessor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use Magento\CatalogRule\Model\Rule\Job;
1616

1717
/**
18-
* Class CatalogPriceRulesProcessor
19-
* @package CtiDigital\Configurator\Component\CatalogPriceRules
2018
* @SuppressWarnings(PHPMD.ShortVariable)
2119
*/
2220
class CatalogPriceRulesProcessor implements ComponentProcessorInterface

Component/Categories.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
use Magento\Framework\App\Filesystem\DirectoryList;
1111

1212
/**
13-
* Class Categories
14-
* @package CtiDigital\Configurator\Component
1513
* @SuppressWarnings(PHPMD.ShortVariable)
1614
*/
1715
class Categories implements ComponentInterface

Component/CustomerGroups.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use CtiDigital\Configurator\Api\LoggerInterface;
99

1010
/**
11-
* Class CustomerGroups
12-
* @package CtiDigital\Configurator\Component
1311
* @SuppressWarnings(PHPMD.ShortVariable)
1412
*/
1513
class CustomerGroups implements ComponentInterface

Component/Product/AttributeOption.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use CtiDigital\Configurator\Api\LoggerInterface;
1212

1313
/**
14-
* Class AttributeOption
15-
* @package CtiDigital\Configurator\Component\Product
1614
* @SuppressWarnings(PHPMD.ShortVariable)
1715
*/
1816
class AttributeOption

Component/Rewrites.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Magento\UrlRewrite\Model\UrlPersistInterface;
1010

1111
/**
12-
* Class Rewrites
13-
* @package CtiDigital\Configurator\Component
1412
* @SuppressWarnings(PHPMD.ShortVariable)
1513
*/
1614
class Rewrites implements ComponentInterface

Component/TaxRules.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
use Magento\Tax\Model\ClassModelFactory;
1111

1212
/**
13-
* Class TaxRules
14-
* @package CtiDigital\Configurator\Component
1513
* @SuppressWarnings(PHPMD.ShortVariable)
1614
*/
1715
class TaxRules implements ComponentInterface

Test/Unit/Component/ConfigTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ class ConfigTest extends \PHPUnit\Framework\TestCase
2929
*/
3030
private $scopeConfig;
3131

32+
/**
33+
* @var ScopeConfig\Initial|\PHPUnit\Framework\MockObject\MockObject
34+
*/
35+
private $initialConfig;
36+
3237
/**
3338
* @var Collection|\PHPUnit\Framework\MockObject\MockObject
3439
*/
@@ -67,6 +72,9 @@ protected function setUp()
6772
$this->scopeConfig = $this->getMockBuilder(ScopeConfig::class)
6873
->disableOriginalConstructor()
6974
->getMock();
75+
$this->initialConfig = $this->getMockBuilder(ScopeConfig\Initial::class)
76+
->disableOriginalConstructor()
77+
->getMock();
7078
$this->collection = $this->getMockBuilder(Collection::class)
7179
->disableOriginalConstructor()
7280
->getMock();
@@ -90,6 +98,7 @@ protected function setUp()
9098
$this->config = new Config(
9199
$this->configResource,
92100
$this->scopeConfig,
101+
$this->initialConfig,
93102
$this->collectionFactory,
94103
$this->encryptorInterface,
95104
$this->websiteFactory,

0 commit comments

Comments
 (0)