Code Duplication    Length = 10-11 lines in 2 locations

tests/unit/PartialSubmissionJobTest.php 2 locations

@@ 36-45 (lines=10) @@
33
        $this->assertInstanceOf(SiteConfig::class, $this->job->getConfig());
34
    }
35
36
    public function testProcess()
37
    {
38
        $this->assertTrue(method_exists($this->job, 'process'));
39
        SetupSiteConfig::setupSiteConfig('[email protected]', null, true);
40
        $this->job->setup();
41
        $this->job->process();
42
43
        $this->assertEmailSent('[email protected]');
44
        $this->assertFileExists('/tmp/Export of TestForm - 2018-01-01 12:00:00.csv');
45
    }
46
47
    public function testProcessNoMail()
48
    {
@@ 143-153 (lines=11) @@
140
        $this->assertEquals($expected, $emails);
141
    }
142
143
    public function testCommaSeparatedUsers()
144
    {
145
        SetupSiteConfig::setupSiteConfig('[email protected], [email protected] , [email protected]', null, true);
146
147
        $this->job->setup();
148
        $this->job->process();
149
150
        $this->assertEmailSent('[email protected]');
151
        $this->assertEmailSent('[email protected]');
152
        $this->assertEmailSent('[email protected]');
153
    }
154
155
    public function testFromAddressSet()
156
    {