FriendsOfSymfony / FOSUserBundle

Provides user management for your Symfony project. Compatible with Doctrine ORM & ODM, and custom storages.

Home Page:https://symfony.com/doc/master/bundles/FOSUserBundle/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit test call to undefined method trans

phamuyentri opened this issue · comments

commented

Symfony FOSUserBundle versions 2.1.2:

Description of the problem including expected versus actual behavior:

Steps to reproduce:

  1. Check out friendsofsymfony/user-bundle
  2. Composer install
  3. Run phpunit by vendor/bin/phpunit

Provide logs (if relevant):

There was 1 error:

  1. FOS\UserBundle\Tests\EventListener\FlashListenerTest::testAddSuccessFlash
    Error: Call to undefined method Mock_TranslatorInterface_48630a7a::trans()

~/FOSUserBundle/EventListener/FlashListener.php:94
~/FOSUserBundle/EventListener/FlashListener.php:83
~/FOSUserBundle/Tests/EventListener/FlashListenerTest.php:46