Fix active coding standard rule violations in tests [MAILPOET-981]
This commit is contained in:
@ -114,6 +114,7 @@ class SendingQueueTest extends MailPoetTest {
|
||||
$sending_queue_worker->process();
|
||||
self::fail('Execution limits function was not called.');
|
||||
} catch(\Exception $e) {
|
||||
// No exception handling needed
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<?php
|
||||
|
||||
use Carbon\Carbon;
|
||||
@ -324,7 +323,7 @@ class NewsletterSchedulerTest extends MailPoetTest {
|
||||
'monthDay' => null,
|
||||
'nthWeekDay' => null,
|
||||
'weekDay' => null,
|
||||
'timeOfDay' => 50400 // 14:00
|
||||
'timeOfDay' => 50400 // 2 p.m.
|
||||
);
|
||||
Scheduler::processPostNotificationSchedule($newsletter);
|
||||
$newsletter_option = NewsletterOption::where('newsletter_id', $newsletter->id)
|
||||
@ -341,7 +340,7 @@ class NewsletterSchedulerTest extends MailPoetTest {
|
||||
'monthDay' => null,
|
||||
'nthWeekDay' => null,
|
||||
'weekDay' => Carbon::TUESDAY,
|
||||
'timeOfDay' => 50400 // 14:00
|
||||
'timeOfDay' => 50400 // 2 p.m.
|
||||
);
|
||||
Scheduler::processPostNotificationSchedule($newsletter);
|
||||
$current_time = Carbon::createFromTimestamp(current_time('timestamp'));
|
||||
@ -359,7 +358,7 @@ class NewsletterSchedulerTest extends MailPoetTest {
|
||||
'monthDay' => 19, // 20th (count starts from 0)
|
||||
'nthWeekDay' => null,
|
||||
'weekDay' => null,
|
||||
'timeOfDay' => 50400 // 14:00
|
||||
'timeOfDay' => 50400 // 2 p.m.
|
||||
);
|
||||
Scheduler::processPostNotificationSchedule($newsletter);
|
||||
$newsletter_option = NewsletterOption::where('newsletter_id', $newsletter->id)
|
||||
@ -376,7 +375,7 @@ class NewsletterSchedulerTest extends MailPoetTest {
|
||||
'monthDay' => null,
|
||||
'nthWeekDay' => 'L', // L = last
|
||||
'weekDay' => Carbon::SATURDAY,
|
||||
'timeOfDay' => 50400 // 14:00
|
||||
'timeOfDay' => 50400 // 2 p.m.
|
||||
);
|
||||
Scheduler::processPostNotificationSchedule($newsletter);
|
||||
$newsletter_option = NewsletterOption::where('newsletter_id', $newsletter->id)
|
||||
|
@ -143,8 +143,7 @@ class ExportTest extends MailPoetTest {
|
||||
'|' .
|
||||
preg_quote(Env::$temp_url, '|') . '/' .
|
||||
basename($this->export->export_file) .
|
||||
'|'
|
||||
, $this->export->export_file_URL)
|
||||
'|', $this->export->export_file_URL)
|
||||
)->equals(1);
|
||||
expect($this->export->subscriber_batch_size)->notNull();
|
||||
}
|
||||
|
Reference in New Issue
Block a user