File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
setup/src/Magento/Setup/Test/Unit/Console/Command Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -93,20 +93,8 @@ public function setUp()
93
93
);
94
94
}
95
95
96
- public function testExecuteDiExists ()
97
- {
98
- $ diPath = '/root/magento/var/di ' ;
99
- $ this ->deploymentConfig ->expects ($ this ->once ())->method ('isAvailable ' )->willReturn (true );
100
- $ this ->fileDriver ->expects ($ this ->atLeastOnce ())->method ('isExists ' )->with ($ diPath )->willReturn (true );
101
- $ this ->directoryList ->expects ($ this ->atLeastOnce ())->method ('getPath ' )->willReturn ($ diPath );
102
- $ tester = new CommandTester ($ this ->command );
103
- $ tester ->execute ([]);
104
- $ this ->assertContains ("delete '/root/magento/var/di' " , $ tester ->getDisplay ());
105
- }
106
-
107
96
public function testExecuteNotInstalled ()
108
97
{
109
- $ this ->directoryList ->expects ($ this ->atLeastOnce ())->method ('getPath ' )->willReturn (null );
110
98
$ this ->deploymentConfig ->expects ($ this ->once ())->method ('isAvailable ' )->willReturn (false );
111
99
$ tester = new CommandTester ($ this ->command );
112
100
$ tester ->execute ([]);
You can’t perform that action at this time.
0 commit comments