@@ 87-97 (lines=11) @@ | ||
84 | $this->assertNull($processedSubmission); |
|
85 | } |
|
86 | ||
87 | public function testFilesRemoved() |
|
88 | { |
|
89 | $config = SiteConfig::current_site_config(); |
|
90 | $config->SendDailyEmail = true; |
|
91 | $config->SendMailTo = '[email protected]'; |
|
92 | $config->write(); |
|
93 | $this->job->process(); |
|
94 | $this->job->afterComplete(); |
|
95 | ||
96 | $this->assertFileNotExists('/tmp/Export of TestForm - 2018-01-01 12:00:00.csv'); |
|
97 | } |
|
98 | ||
99 | public function testNewJobCreated() |
|
100 | { |
|
@@ 137-147 (lines=11) @@ | ||
134 | $this->assertArrayHasKey('[email protected]', $emails); |
|
135 | } |
|
136 | ||
137 | public function testCommaSeparatedUsers() |
|
138 | { |
|
139 | $config = SiteConfig::current_site_config(); |
|
140 | $config->SendDailyEmail = true; |
|
141 | $config->SendMailTo = '[email protected], [email protected] , [email protected]'; |
|
142 | $config->write(); |
|
143 | ||
144 | $this->job->process(); |
|
145 | $this->job->afterComplete(); |
|
146 | ||
147 | } |
|
148 | ||
149 | protected function setUp() |
|
150 | { |