fix tests
This commit is contained in:
@@ -26,7 +26,7 @@ class ApiHtmlJavaScriptEscapingContractTest extends FullSurfaceE2EContractCase
|
||||
$response = $this->requestAs($this->actorFor($uri), $method, $uri, $payload);
|
||||
|
||||
$this->assertControlled($response, $method, $uri);
|
||||
$this->assertNoServerError($response, 'HTML/script payload at ' . $method . ' ' . $uri);
|
||||
$this->assertNoServerError($response, 'HTML/script payload at '.$method.' '.$uri);
|
||||
$this->assertStringNotContainsString('<script>alert("e2e")</script>', $response->getContent());
|
||||
$this->assertStringNotContainsString('onerror=alert(1)', $response->getContent());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user