Skip to content

v1.0.4

Choose a tag to compare

@erikgall erikgall released this 12 Aug 17:29
· 44 commits to master since this release

Database Test Helper

You can now use the database test helper outside of the eloquent test case.

use EGALL\EloquentPHPUnit\DatabaseTestHelper;

class LoginTest extends TestCase {

use DatabaseTestHelper;

// Set the default database seeder class
protected $defaultSeeder = 'DatabaseSeeder';

// Set multiple seeders to be called instead of just the default
protected $seeders = ['UsersTableSeeder', 'PostsTableSeeder'];

// Turn off database seeding (on by default)
protected $seedDatabase = false;

}

Bug Fixes

  • Fixed the call to the default seeder method (was calling property).