@@ 228-235 (lines=8) @@ | ||
225 | /** |
|
226 | * Tests that the expired action is shown |
|
227 | */ |
|
228 | public function testExpired() |
|
229 | { |
|
230 | $this->logoutMember(); |
|
231 | $response = $this->get($this->controller->Link('expired')); |
|
232 | $body = Convert::nl2os($response->getBody(), ''); |
|
233 | $this->assertContains('Invitation expired', $body); |
|
234 | $this->assertContains('Oops, you took too long to accept this invitation', $body); |
|
235 | } |
|
236 | ||
237 | /** |
|
238 | * Tests that the notfound action is shown. |
|
@@ 240-247 (lines=8) @@ | ||
237 | /** |
|
238 | * Tests that the notfound action is shown. |
|
239 | */ |
|
240 | public function testNotFound() |
|
241 | { |
|
242 | $this->logoutMember(); |
|
243 | $response = $this->get($this->controller->Link('notfound')); |
|
244 | $body = Convert::nl2os($response->getBody(), ''); |
|
245 | $this->assertContains('Invitation not found', $body); |
|
246 | $this->assertContains('Oops, the invitation ID was not found.', $body); |
|
247 | } |
|
248 | ||
249 | /** |
|
250 | * Tests whether links are correctly re-written. |