Code Duplication    Length = 8-8 lines in 3 locations

tests/unit/PartialSubmissionJobTest.php 3 locations

@@ 155-162 (lines=8) @@
152
        $this->assertEmailSent('[email protected]');
153
    }
154
155
    public function testFromAddressSet()
156
    {
157
        SiteConfigHelper::setupSiteConfig('[email protected]', '[email protected]', true);
158
159
        $this->job->setup();
160
        $this->job->process();
161
        $this->assertEmailSent('[email protected]', '[email protected]');
162
    }
163
164
    public function testFromAddressNotSet()
165
    {
@@ 164-171 (lines=8) @@
161
        $this->assertEmailSent('[email protected]', '[email protected]');
162
    }
163
164
    public function testFromAddressNotSet()
165
    {
166
        SiteConfigHelper::setupSiteConfig('[email protected]', null, true);
167
168
        $this->job->setup();
169
        $this->job->process();
170
        $this->assertEmailSent('[email protected]', 'site@' . Director::host());
171
    }
172
    
173
    public function testCleanupSubmissions()
174
    {
@@ 173-180 (lines=8) @@
170
        $this->assertEmailSent('[email protected]', 'site@' . Director::host());
171
    }
172
    
173
    public function testCleanupSubmissions()
174
    {
175
        SiteConfigHelper::setupSiteConfig('[email protected]', null, true);
176
177
        $this->job->setup();
178
        $this->job->process();
179
        $this->assertEmailSent('[email protected]', 'site@' . Director::host());
180
    }
181
182
    protected function setUp()
183
    {