diff --git a/en/development/testing.rst b/en/development/testing.rst index 3f64acc774..b5037b611e 100644 --- a/en/development/testing.rst +++ b/en/development/testing.rst @@ -1112,8 +1112,8 @@ The state set by these helper methods is reset in the ``tearDown()`` method. .. versionadded:: 5.1.0 ``replaceRequest()`` was added. -Testing Actions Protected by CsrfMiddleware or FormProtectionComponent ----------------------------------------------------------------------- +Testing Actions Protected by CsrfProtectionMiddleware or FormProtectionComponent +-------------------------------------------------------------------------------- When testing actions protected by either ``CsrfProtectionMiddleware`` or ``FormProtectionComponent`` you can enable automatic token generation to ensure your tests won't fail due to