mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Switch test assertion to be more flexible in URL pieces (versioned changes in 4.2)
This commit is contained in:
parent
35733f46e3
commit
549498a323
@ -89,7 +89,9 @@ class UserDefinedFormControllerTest extends FunctionalTest
|
||||
|
||||
// check to see if the user was redirected (301)
|
||||
$this->assertEquals($response->getStatusCode(), 302);
|
||||
$this->assertStringEndsWith('finished#uff', $response->getHeader('Location'));
|
||||
$location = $response->getHeader('Location');
|
||||
$this->assertContains('finished', $location);
|
||||
$this->assertStringEndsWith('#uff', $location);
|
||||
|
||||
// check that multiple email addresses are supported in to and from
|
||||
$this->assertEmailSent(
|
||||
|
Loading…
Reference in New Issue
Block a user