Code Duplication    Length = 8-8 lines in 2 locations

tests/controllers/UserControllerTest.php 2 locations

@@ 161-168 (lines=8) @@
158
    /**
159
     * Tests that the expired action is shown
160
     */
161
    public function testExpired()
162
    {
163
        $this->logoutMember();
164
        $response = $this->get($this->controller->Link('expired'));
165
        $body = Convert::nl2os($response->getBody(), '');
166
        $this->assertContains('Invitation expired', $body);
167
        $this->assertContains('Oops, you took too long to accept this invitation', $body);
168
    }
169
170
    /**
171
     * Tests that the notfound action is shown.
@@ 173-180 (lines=8) @@
170
    /**
171
     * Tests that the notfound action is shown.
172
     */
173
    public function testNotFound()
174
    {
175
        $this->logoutMember();
176
        $response = $this->get($this->controller->Link('notfound'));
177
        $body = Convert::nl2os($response->getBody(), '');
178
        $this->assertContains('Invitation not found', $body);
179
        $this->assertContains('Oops, the invitation ID was not found.', $body);
180
    }
181
182
    /**
183
     * Tests whether links are correctly re-written.