Skip to content

Commit 5b9e1c9

Browse files
author
Bohdan Korablov
committed
MAGETWO-65422: Write default configs to shared configuration file by app:config:dump
1 parent b621c46 commit 5b9e1c9

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

app/code/Magento/Config/Test/Unit/Model/PreparedValueFactoryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ protected function setUp()
9999
->disableOriginalConstructor()
100100
->getMock();
101101
$this->fieldMock = $this->getMockBuilder(Field::class)
102-
//->setMethods(['getData', 'getConfigPath', 'getId', 'hasBackendModel'])
103102
->disableOriginalConstructor()
104103
->getMock();
105104
$this->valueMock = $this->getMockBuilder(Value::class)

app/code/Magento/Store/Test/Unit/Model/ScopeTypeNormalizerTest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,30 @@ public function normalizeDataProvider()
5656
['default', false, 'default'],
5757
];
5858
}
59+
60+
/**
61+
* @param string $scopeType
62+
* @param string $expectedResult
63+
* @dataProvider normalizeDefaultDataProvider
64+
*/
65+
public function testNormalizeDefault($scopeType, $expectedResult)
66+
{
67+
$this->assertEquals($expectedResult, $this->scopeTypeNormalizer->normalize($scopeType));
68+
}
69+
70+
/**
71+
* @return array
72+
*/
73+
public function normalizeDefaultDataProvider()
74+
{
75+
return [
76+
[ScopeInterface::SCOPE_WEBSITE, ScopeInterface::SCOPE_WEBSITES],
77+
[ScopeInterface::SCOPE_WEBSITES, ScopeInterface::SCOPE_WEBSITES],
78+
[ScopeInterface::SCOPE_GROUP, ScopeInterface::SCOPE_GROUPS],
79+
[ScopeInterface::SCOPE_GROUPS, ScopeInterface::SCOPE_GROUPS],
80+
[ScopeInterface::SCOPE_STORE, ScopeInterface::SCOPE_STORES],
81+
[ScopeInterface::SCOPE_STORES, ScopeInterface::SCOPE_STORES],
82+
['default', 'default'],
83+
];
84+
}
5985
}

0 commit comments

Comments
 (0)