File tree 2 files changed +5
-3
lines changed
app/code/Magento/Cron/etc
dev/tests/static/testsuite/Magento/Test/Php
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 43
43
</argument >
44
44
</arguments >
45
45
</type >
46
- <type name =" Magento\Framework\Crontab\CrontabManager " >
46
+ <type name =" Magento\Framework\Crontab\CrontabManagerInterface " >
47
47
<arguments >
48
48
<argument name =" shell" xsi : type =" object" >Magento\Framework\App\Shell</argument >
49
49
</arguments >
Original file line number Diff line number Diff line change @@ -206,10 +206,12 @@ public function testCodeStyle()
206
206
207
207
$ reportFile = self ::$ reportDir . '/phpcs_report.txt ' ;
208
208
$ codeSniffer = new CodeSniffer ('Magento ' , $ reportFile , new Wrapper ());
209
+ $ result = $ codeSniffer ->run ($ whiteList );
210
+ $ report = file_exists ($ reportFile ) ? file_get_contents ($ reportFile ) : '' ;
209
211
$ this ->assertEquals (
210
212
0 ,
211
- $ result = $ codeSniffer -> run ( $ whiteList ) ,
212
- "PHP Code Sniffer detected {$ result } violation(s): " . PHP_EOL . file_get_contents ( $ reportFile )
213
+ $ result ,
214
+ "PHP Code Sniffer detected {$ result } violation(s): " . PHP_EOL . $ report
213
215
);
214
216
}
215
217
You can’t perform that action at this time.
0 commit comments