File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public function dispatch($observer)
148
148
'system/cron/ ' . $ groupId . '/use_separate_process ' ,
149
149
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
150
150
) == 1
151
- )) {
151
+ )) {
152
152
$ this ->_shell ->execute (
153
153
'php -f %s -- --group=%s --standaloneProcessStarted=%s ' ,
154
154
[
Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ public function trySchedule()
104
104
$ time = strtotime ($ time );
105
105
}
106
106
$ match = $ this ->matchCronExpression ($ e [0 ], strftime ('%M ' , $ time ))
107
- && $ this ->matchCronExpression ($ e [1 ], strftime ('%H ' , $ time ))
108
- && $ this ->matchCronExpression ($ e [2 ], strftime ('%d ' , $ time ))
109
- && $ this ->matchCronExpression ($ e [3 ], strftime ('%m ' , $ time ))
110
- && $ this ->matchCronExpression ($ e [4 ], strftime ('%w ' , $ time ));
107
+ && $ this ->matchCronExpression ($ e [1 ], strftime ('%H ' , $ time ))
108
+ && $ this ->matchCronExpression ($ e [2 ], strftime ('%d ' , $ time ))
109
+ && $ this ->matchCronExpression ($ e [3 ], strftime ('%m ' , $ time ))
110
+ && $ this ->matchCronExpression ($ e [4 ], strftime ('%w ' , $ time ));
111
111
112
112
return $ match ;
113
113
}
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ class ObserverTest extends \PHPUnit_Framework_TestCase
60
60
protected $ _cronGroupConfig ;
61
61
62
62
/**
63
- * @var \Magento\Framework\Stdlib\DateTime\TimezoneInterface
64
- */
63
+ * @var \Magento\Framework\Stdlib\DateTime\TimezoneInterface
64
+ */
65
65
protected $ timezone ;
66
66
67
67
/**
@@ -120,7 +120,7 @@ public function testDispatchNoPendingJobs()
120
120
$ lastRun = time () + 10000000 ;
121
121
$ this ->_cache ->expects ($ this ->any ())->method ('load ' )->will ($ this ->returnValue ($ lastRun ));
122
122
$ this ->_scopeConfig ->expects ($ this ->any ())->method ('getValue ' )->will ($ this ->returnValue (0 ));
123
- $ this -> _request -> expects ( $ this -> any ())-> method ( ' getParam ' )-> will ( $ this -> returnValue ( ' test_job1 ' ));
123
+
124
124
$ this ->_config ->expects ($ this ->once ())->method ('getJobs ' )->will ($ this ->returnValue ([]));
125
125
126
126
$ scheduleMock = $ this ->getMockBuilder ('Magento\Cron\Model\Schedule ' )->disableOriginalConstructor ()->getMock ();
You can’t perform that action at this time.
0 commit comments