Switch test assertion to be more flexible in URL pieces (versioned changes in 4.2)

This commit is contained in:
Robbie Averill 2018-03-26 10:46:09 +13:00
parent 5cce5f5a17
commit b615721f22
1 changed files with 3 additions and 1 deletions

View File

@ -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(