Skip to content

Commit 60cf60d

Browse files
MC-41854: Page builder gallery load issue
1 parent 65a8744 commit 60cf60d

File tree

1 file changed

+2
-19
lines changed
  • app/code/Magento/Cms/Test/Unit/Block/Adminhtml/Wysiwyg/Images

1 file changed

+2
-19
lines changed

app/code/Magento/Cms/Test/Unit/Block/Adminhtml/Wysiwyg/Images/TreeTest.php

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,16 @@ protected function setUp(): void
9292
/**
9393
* Test execute for get directories tree
9494
*
95-
* @param array $fileNames
96-
* @dataProvider dirsCollectionDataProvider
9795
* @return void
9896
*/
99-
public function testGetTreeJson($fileNames): void
97+
public function testGetTreeJson(): void
10098
{
10199
$collection = [];
102100
$this->cmsWysiwygImagesMock->method('getStorageRoot')
103101
->willReturn('/storage/root/dir/');
104102
$this->cmsWysiwygImagesMock->method('getCurrentPath')
105103
->willReturn('/storage/root/dir/pub/media/');
104+
$fileNames = ['fileName'];
106105
foreach ($fileNames as $filename) {
107106
/** @var DataObject|MockObject $objectMock */
108107
$objectMock = $this->getMockBuilder(DataObject::class)
@@ -124,20 +123,4 @@ public function testGetTreeJson($fileNames): void
124123
->willReturn($this->directoryMock);
125124
$this->model->getTreeJson();
126125
}
127-
128-
/**
129-
* Data provider for testGetTreeJson()
130-
*
131-
* @return array
132-
*/
133-
public function dirsCollectionDataProvider(): array
134-
{
135-
return [
136-
[
137-
'filenames' => [
138-
'/dress',
139-
]
140-
]
141-
];
142-
}
143126
}

0 commit comments

Comments
 (0)