File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
app/code/Magento/Cron/etc
dev/tests/static/testsuite/Magento/Test/Php Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4343 </argument >
4444 </arguments >
4545 </type >
46- <type name =" Magento\Framework\Crontab\CrontabManager " >
46+ <type name =" Magento\Framework\Crontab\CrontabManagerInterface " >
4747 <arguments >
4848 <argument name =" shell" xsi : type =" object" >Magento\Framework\App\Shell</argument >
4949 </arguments >
Original file line number Diff line number Diff line change @@ -206,10 +206,12 @@ public function testCodeStyle()
206206
207207 $ reportFile = self ::$ reportDir . '/phpcs_report.txt ' ;
208208 $ codeSniffer = new CodeSniffer ('Magento ' , $ reportFile , new Wrapper ());
209+ $ result = $ codeSniffer ->run ($ whiteList );
210+ $ report = file_exists ($ reportFile ) ? file_get_contents ($ reportFile ) : '' ;
209211 $ this ->assertEquals (
210212 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
213215 );
214216 }
215217
You can’t perform that action at this time.
0 commit comments