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
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}
You can’t perform that action at this time.
0 commit comments