|
@@ 56-68 (lines=13) @@
|
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
public function testIsSend() |
| 57 |
|
{ |
| 58 |
|
$submission = $this->objFromFixture(PartialFormSubmission::class, 'submission1'); |
| 59 |
|
$config = SiteConfig::current_site_config(); |
| 60 |
|
$config->SendDailyEmail = true; |
| 61 |
|
$config->SendMailTo = '[email protected]'; |
| 62 |
|
$config->write(); |
| 63 |
|
$this->job->process(); |
| 64 |
|
|
| 65 |
|
$processedSubmission = $submission->get()->byID($submission->ID); |
| 66 |
|
|
| 67 |
|
$this->assertTrue((bool)$processedSubmission->IsSend); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function testIsDeleted() |
| 71 |
|
{ |
|
@@ 70-84 (lines=15) @@
|
| 67 |
|
$this->assertTrue((bool)$processedSubmission->IsSend); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function testIsDeleted() |
| 71 |
|
{ |
| 72 |
|
$submission = $this->objFromFixture(PartialFormSubmission::class, 'submission1'); |
| 73 |
|
$config = SiteConfig::current_site_config(); |
| 74 |
|
$config->SendDailyEmail = true; |
| 75 |
|
$config->CleanupAfterSend = true; |
| 76 |
|
$config->SendMailTo = '[email protected]'; |
| 77 |
|
$config->write(); |
| 78 |
|
$this->job->process(); |
| 79 |
|
$this->job->afterComplete(); |
| 80 |
|
|
| 81 |
|
$processedSubmission = $submission->get()->byID($submission->ID); |
| 82 |
|
|
| 83 |
|
$this->assertNull($processedSubmission); |
| 84 |
|
} |
| 85 |
|
// |
| 86 |
|
// public function testNewJobCreated() |
| 87 |
|
// { |