阅读背景:

如何在Laravel 4单元测试中的setupBeforeClass方法中为我的数据库设定种子?

来源:互联网 

I have a Laravel 4 test class with a number of tests for which I want to seed my database before running the tests. Using the setup() function to reseed for each test takes far too long. However, when I try seeding in the static setupBeforeClass() function or in the constructor, I obviously can't use the $this->seed() method. I have a Laravel 4 test class with a number of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: