Skip to content

Commit 0492e89

Browse files
author
Bohdan Korablov
committed
MAGETWO-54716: Unable to setup Magento via web installer
1 parent a422d91 commit 0492e89

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/SampleData/Test/Unit/Console/Command/SampleDataDeployCommandTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function processDataProvider()
182182

183183
/**
184184
* @expectedException \Exception
185-
* @expectedExceptionMessage Error in writing Auth file. Please check permissions for writing.
185+
* @expectedExceptionMessage Error in writing Auth file path/to/auth.json. Please check permissions for writing.
186186
* @return void
187187
*/
188188
public function testExecuteWithException()
@@ -195,6 +195,10 @@ public function testExecuteWithException()
195195
->method('writeFile')
196196
->with(PackagesAuth::PATH_TO_AUTH_FILE, '{}')
197197
->willThrowException(new \Exception('Something went wrong...'));
198+
$this->directoryWriteMock->expects($this->once())
199+
->method('getAbsolutePath')
200+
->with(PackagesAuth::PATH_TO_AUTH_FILE)
201+
->willReturn('path/to/auth.json');
198202
$this->filesystemMock->expects($this->once())
199203
->method('getDirectoryWrite')
200204
->with(DirectoryList::COMPOSER_HOME)

0 commit comments

Comments
 (0)