Code Duplication    Length = 8-8 lines in 2 locations

tests/controllers/UserControllerTest.php 2 locations

@@ 196-203 (lines=8) @@
193
    /**
194
     * Tests that the expired action is shown
195
     */
196
    public function testExpired()
197
    {
198
        $this->logoutMember();
199
        $response = $this->get($this->controller->Link('expired'));
200
        $body = Convert::nl2os($response->getBody(), '');
201
        $this->assertContains('Invitation expired', $body);
202
        $this->assertContains('Oops, you took too long to accept this invitation', $body);
203
    }
204
205
    /**
206
     * Tests that the notfound action is shown.
@@ 208-215 (lines=8) @@
205
    /**
206
     * Tests that the notfound action is shown.
207
     */
208
    public function testNotFound()
209
    {
210
        $this->logoutMember();
211
        $response = $this->get($this->controller->Link('notfound'));
212
        $body = Convert::nl2os($response->getBody(), '');
213
        $this->assertContains('Invitation not found', $body);
214
        $this->assertContains('Oops, the invitation ID was not found.', $body);
215
    }
216
217
    /**
218
     * Tests whether links are correctly re-written.