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 35733f46e3
commit 549498a323

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(