symfony/symfony-docs — pull request #2468 by jakzal (2013-04-05 19:43:51+00:00)
Title: Documented simulating an authentication by manual token creation.

Even though there are better ways of doing the same thing (like alternative authentication strategy for test environment), we're getting lots of questions on how to properly authenticate a user in a functional test by creating a token manually (see https://github.com/symfony/symfony/issues/5161).