File tree Expand file tree Collapse file tree 3 files changed +2
-34
lines changed Expand file tree Collapse file tree 3 files changed +2
-34
lines changed Original file line number Diff line number Diff line change 12
12
*/
13
13
class Build
14
14
{
15
- const BUILD_OPT_SKIP_DI_COMPILATION = 'skip_di_compilation ' ;
16
- const BUILD_OPT_SKIP_DI_CLEARING = 'skip_di_clearing ' ;
17
15
const BUILD_OPT_SCD_EXCLUDE_THEMES = 'exclude_themes ' ;
18
16
const BUILD_OPT_SCD_THREADS = 'scd_threads ' ;
19
17
const BUILD_OPT_SKIP_SCD = 'skip_scd ' ;
Original file line number Diff line number Diff line change @@ -73,12 +73,8 @@ public function execute()
73
73
$ verbosityLevel = $ this ->buildConfig ->getVerbosityLevel ();
74
74
75
75
if ($ this ->file ->isExists ($ configFile )) {
76
- if (!$ this ->buildConfig ->get (BuildConfig::BUILD_OPT_SKIP_DI_COMPILATION )) {
77
- $ this ->logger ->info ('Running DI compilation ' );
78
- $ this ->shell ->execute ("php ./bin/magento setup:di:compile {$ verbosityLevel }" );
79
- } else {
80
- $ this ->logger ->info ('Skip running DI compilation ' );
81
- }
76
+ $ this ->logger ->info ('Running DI compilation ' );
77
+ $ this ->shell ->execute ("php ./bin/magento setup:di:compile {$ verbosityLevel }" );
82
78
} else {
83
79
$ this ->logger ->info (
84
80
"Missing config.php, please run the following commands "
Original file line number Diff line number Diff line change @@ -89,10 +89,6 @@ public function testExecute()
89
89
->method ('isExists ' )
90
90
->with ('magento_root/app/etc/config.php ' )
91
91
->willReturn (true );
92
- $ this ->buildConfigMock ->expects ($ this ->once ())
93
- ->method ('get ' )
94
- ->with (Build::BUILD_OPT_SKIP_DI_COMPILATION )
95
- ->willReturn (false );
96
92
$ this ->loggerMock ->expects ($ this ->once ())
97
93
->method ('info ' )
98
94
->with ('Running DI compilation ' );
@@ -103,28 +99,6 @@ public function testExecute()
103
99
$ this ->process ->execute ();
104
100
}
105
101
106
- public function testExecuteSkipCompilation ()
107
- {
108
- $ this ->buildConfigMock ->expects ($ this ->once ())
109
- ->method ('getVerbosityLevel ' )
110
- ->willReturn ('-vvv ' );
111
- $ this ->fileMock ->expects ($ this ->once ())
112
- ->method ('isExists ' )
113
- ->with ('magento_root/app/etc/config.php ' )
114
- ->willReturn (true );
115
- $ this ->buildConfigMock ->expects ($ this ->once ())
116
- ->method ('get ' )
117
- ->with (Build::BUILD_OPT_SKIP_DI_COMPILATION )
118
- ->willReturn (true );
119
- $ this ->loggerMock ->expects ($ this ->once ())
120
- ->method ('info ' )
121
- ->with ('Skip running DI compilation ' );
122
- $ this ->shellMock ->expects ($ this ->never ())
123
- ->method ('execute ' );
124
-
125
- $ this ->process ->execute ();
126
- }
127
-
128
102
/**
129
103
* @expectedException \RuntimeException
130
104
* @expectedExceptionMessage Missing config.php file
You can’t perform that action at this time.
0 commit comments