Best way to create a test database and load fixtures on Symfony 2 WebTestCase?

后端 未结 7 1505
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 13:11

I have a WebTestCase that executes some basic routes in my application.

I want to, on the setUp method of PHPUnit, create a test database identical to m

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 13:43

    I used this command:

    yes | php app/console doctrine:fixtures:load --purge-with-truncate
    

    But of course LiipFunctionalTestBundle looks promising.

提交回复
热议问题