version 1.16.2 (#2942)
* bump version * include calendar week in week chooser * table names in SQL * show save flash message * prevent migration warning * drop default value to prevent error when server version is not set * csrf token for duplicate actions * updated translations
This commit is contained in:
@@ -425,4 +425,14 @@ abstract class ControllerBaseTest extends WebTestCase
|
||||
self::assertStringContainsString('attachment; filename=' . $prefix, $response->headers->get('Content-Disposition'));
|
||||
self::assertStringContainsString('.xlsx', $response->headers->get('Content-Disposition'));
|
||||
}
|
||||
|
||||
protected function assertInvalidCsrfToken(HttpKernelBrowser $client, string $url, string $expectedRedirect)
|
||||
{
|
||||
$this->request($client, $url);
|
||||
|
||||
$this->assertIsRedirect($client);
|
||||
$this->assertRedirectUrl($client, $expectedRedirect);
|
||||
$client->followRedirect();
|
||||
$this->assertHasFlashError($client, 'The action could not be performed: invalid security token.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user