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

后端 未结 7 1508
伪装坚强ぢ
伪装坚强ぢ 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:30

    In order to bypass user confirmation you can use

    doctrine:fixtures:load --no-interaction
    or
    doctrine:fixtures:load -n
    

提交回复
热议问题