Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb84abc6

Browse files
committed
[symfony#2468] Minor tweaks to new simulating auth in test env entry
1 parent7384903 commitb84abc6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎cookbook/map.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
* :doc:`/cookbook/testing/index`
141141

142142
* :doc:`/cookbook/testing/http_authentication`
143+
* :doc:`/cookbook/testing/simulating_authentication`
143144
* :doc:`/cookbook/testing/insulating_clients`
144145
* :doc:`/cookbook/testing/profiling`
145146
* :doc:`/cookbook/testing/doctrine`

‎cookbook/testing/simulating_authentication.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
..index::
22
single: Tests; Simulating authentication
33

4-
How to simulate Authentication with atoken in a Functional Test
4+
How to simulate Authentication with aToken in a Functional Test
55
================================================================
66

77
Authenticating requests in functional tests might slow down the suite.
@@ -11,9 +11,9 @@ it requires additional requests to fill in and submit the form.
1111
One of the solutions is to configure your firewall to use ``http_basic`` in
1212
the test environment as explained in
1313
:doc:`/cookbook/testing/http_authentication`.
14-
Another way would becreatinga token yourself andstoring it in a session.
15-
While doing this you have to make sure that appropriate cookie is sent
16-
with a request.Following example demonstrates this technique::
14+
Another way would beto createa token yourself andstore it in a session.
15+
While doing this, you have to make sure that appropriate cookie is sent
16+
with a request.The following example demonstrates this technique::
1717

1818
// src/Acme/DemoBundle/Tests/Controller/DemoControllerTest.php
1919
namespace Acme\DemoBundle\Tests\Controller;
@@ -57,5 +57,5 @@ with a request. Following example demonstrates this technique::
5757

5858
..note::
5959

60-
Technique described in:doc:`/cookbook/testing/http_authentication`.
60+
The technique described in:doc:`/cookbook/testing/http_authentication`.
6161
is cleaner and therefore preferred way.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp