File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
dev/tests/unit/testsuite/Magento/Setup/Model
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -315,9 +315,9 @@ public function testCheckApplicationFilePermissions()
315
315
public function testUpdateModulesSequence ()
316
316
{
317
317
$ varDir = $ this ->getMockForAbstractClass ('Magento\Framework\Filesystem\Directory\WriteInterface ' );
318
- $ varDir ->expects ($ this ->once ( ))->method ('getAbsolutePath ' )->willReturn ('/var ' );
318
+ $ varDir ->expects ($ this ->exactly ( 2 ))->method ('getAbsolutePath ' )->willReturn ('/var ' );
319
319
$ this ->filesystem
320
- ->expects ($ this ->once ( ))
320
+ ->expects ($ this ->exactly ( 2 ))
321
321
->method ('getDirectoryWrite ' )
322
322
->willReturn ($ varDir );
323
323
@@ -345,7 +345,7 @@ public function testUpdateModulesSequence()
345
345
$ this ->logger ->expects ($ this ->at (0 ))->method ('log ' )->with ('File system cleanup: ' );
346
346
$ this ->logger ->expects ($ this ->at (1 ))->method ('log ' )
347
347
->with ('The directory \'/var \' doesn \'t exist - skipping cleanup ' );
348
- $ this ->logger ->expects ($ this ->at (2 ))->method ('log ' )->with ('Updating modules: ' );
348
+ $ this ->logger ->expects ($ this ->at (3 ))->method ('log ' )->with ('Updating modules: ' );
349
349
$ newObject ->updateModulesSequence ();
350
350
}
351
351
Original file line number Diff line number Diff line change @@ -816,7 +816,8 @@ public function updateModulesSequence()
816
816
{
817
817
$ this ->assertDeploymentConfigExists ();
818
818
$ this ->log ->log ('File system cleanup: ' );
819
- $ this ->deleteDirContents (DirectoryList::VAR_DIR );
819
+ $ this ->deleteDirContents (DirectoryList::GENERATION );
820
+ $ this ->deleteDirContents (DirectoryList::CACHE );
820
821
$ this ->log ->log ('Updating modules: ' );
821
822
$ allModules = array_keys ($ this ->moduleLoader ->load ());
822
823
$ deploymentConfig = $ this ->deploymentConfigReader ->load ();
You can’t perform that action at this time.
0 commit comments