Skip to content

Commit 549498a

Browse files
committed
Switch test assertion to be more flexible in URL pieces (versioned changes in 4.2)
1 parent 35733f4 commit 549498a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Control/UserDefinedFormControllerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ public function testProcess()
8989

9090
// check to see if the user was redirected (301)
9191
$this->assertEquals($response->getStatusCode(), 302);
92-
$this->assertStringEndsWith('finished#uff', $response->getHeader('Location'));
92+
$location = $response->getHeader('Location');
93+
$this->assertContains('finished', $location);
94+
$this->assertStringEndsWith('#uff', $location);
9395

9496
// check that multiple email addresses are supported in to and from
9597
$this->assertEmailSent(

0 commit comments

Comments
 (0)