File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/SampleData/Test/Unit/Console/Command Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public function processDataProvider()
182
182
183
183
/**
184
184
* @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.
186
186
* @return void
187
187
*/
188
188
public function testExecuteWithException ()
@@ -195,6 +195,10 @@ public function testExecuteWithException()
195
195
->method ('writeFile ' )
196
196
->with (PackagesAuth::PATH_TO_AUTH_FILE , '{} ' )
197
197
->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 ' );
198
202
$ this ->filesystemMock ->expects ($ this ->once ())
199
203
->method ('getDirectoryWrite ' )
200
204
->with (DirectoryList::COMPOSER_HOME )
You can’t perform that action at this time.
0 commit comments