Symfony4: Doctrine2 works but no connection in PHPUnit test (kernel booted)

后端 未结 1 1023
醉酒成梦
醉酒成梦 2021-01-18 05:02

Strange issue in Symfony4: Doctrine works, I can validate the schema, create the database etc using php bin/console doctrine:schema:create. But my PHPUnit test

1条回答
  •  醉梦人生
    2021-01-18 05:06

    You have to put the DATABASE_URL into your phpunit.xml file, e.g. like this:

    
            
            
            
    
            
            
            
            
            
            
        
    

    0 讨论(0)
提交回复
热议问题