Skip to content

Commit a3c1360

Browse files
MAGETWO-69535: Error during importing new list of scopes through shared file
1 parent ca04906 commit a3c1360

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/code/Magento/Store/Test/Unit/App/Config/Source/InitialConfigSourceTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ public function setUp()
7373
* @param string $path
7474
* @param array $data
7575
* @param string|array $expected
76+
* @param string $expectedPath
7677
* @dataProvider getDataProvider
7778
*/
78-
public function testGet($path, $data, $expected)
79+
public function testGet($path, $data, $expected, $expectedPath)
7980
{
8081
$this->readerMock->expects($this->once())
8182
->method('load')
@@ -89,6 +90,7 @@ public function testGet($path, $data, $expected)
8990
->willReturn($this->dataObjectMock);
9091
$this->dataObjectMock->expects($this->once())
9192
->method('getData')
93+
->with($expectedPath)
9294
->willReturn($expected);
9395

9496
$this->assertEquals($expected, $this->source->get($path));
@@ -100,8 +102,10 @@ public function testGet($path, $data, $expected)
100102
public function getDataProvider()
101103
{
102104
return [
103-
'simple path' => ['path', ['configType' => 'value'], 'value'],
104-
'empty path' => ['', [], []]
105+
'simple path' => ['path', ['configType' => 'value'], 'value', 'configType/path'],
106+
'empty path' => ['', [], [], 'configType'],
107+
'null path' => [null, [], [], 'configType'],
108+
'leading path' => ['/path', [], [], 'configType/path']
105109
];
106110
}
107111

0 commit comments

Comments
 (0)