File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
app/code/Magento/Cms/Test/Unit/Block/Adminhtml/Wysiwyg/Images Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,16 @@ protected function setUp(): void
92
92
/**
93
93
* Test execute for get directories tree
94
94
*
95
- * @param array $fileNames
96
- * @dataProvider dirsCollectionDataProvider
97
95
* @return void
98
96
*/
99
- public function testGetTreeJson ($ fileNames ): void
97
+ public function testGetTreeJson (): void
100
98
{
101
99
$ collection = [];
102
100
$ this ->cmsWysiwygImagesMock ->method ('getStorageRoot ' )
103
101
->willReturn ('/storage/root/dir/ ' );
104
102
$ this ->cmsWysiwygImagesMock ->method ('getCurrentPath ' )
105
103
->willReturn ('/storage/root/dir/pub/media/ ' );
104
+ $ fileNames = ['fileName ' ];
106
105
foreach ($ fileNames as $ filename ) {
107
106
/** @var DataObject|MockObject $objectMock */
108
107
$ objectMock = $ this ->getMockBuilder (DataObject::class)
@@ -124,20 +123,4 @@ public function testGetTreeJson($fileNames): void
124
123
->willReturn ($ this ->directoryMock );
125
124
$ this ->model ->getTreeJson ();
126
125
}
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
- }
143
126
}
You can’t perform that action at this time.
0 commit comments