Skip to content

Commit 7fa9abf

Browse files
MAGETWO-63295: Installation fails because 'generated' directory is not writable
1 parent 020811f commit 7fa9abf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/internal/Magento/Framework/Setup/Test/Unit/FilePermissionsTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function testGetInstallationWritableDirectories()
6868
BP . '/var',
6969
BP . '/pub/media',
7070
BP . '/pub/static',
71+
BP . '/generated'
7172
];
7273

7374
$this->assertEquals($expected, $this->filePermissions->getInstallationWritableDirectories());
@@ -157,6 +158,7 @@ public function testGetMissingWritableDirectoriesAndPathsForInstallation()
157158
BP . '/var',
158159
BP . '/pub/media',
159160
BP . '/pub/static',
161+
BP . '/generated'
160162
];
161163

162164
$this->assertEquals(
@@ -231,6 +233,11 @@ public function setUpDirectoryListInstallation()
231233
->method('getPath')
232234
->with(DirectoryList::STATIC_VIEW)
233235
->will($this->returnValue(BP . '/pub/static'));
236+
$this->directoryListMock
237+
->expects($this->at(4))
238+
->method('getPath')
239+
->with(DirectoryList::GENERATED)
240+
->will($this->returnValue(BP . '/generated'));
234241
}
235242

236243
public function setUpDirectoryWriteInstallation()

0 commit comments

Comments
 (0)