[cookbook] Added simulation authentication in tests

Added translation of that cookbook : http://symfony.com/doc/master/cookbook/testing/simulating_authentication.html