Skip to content

Commit

Permalink
Merge pull request laravel#1679 from IvanDokov/patch-1
Browse files Browse the repository at this point in the history
Added type requirement
  • Loading branch information
taylorotwell committed Jul 14, 2015
2 parents 2cce7c6 + 85d488e commit 5928582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Another option is to wrap every test case in a database transaction. Again, Lara

When testing, it is common to need to insert a few records into your database before executing your test. Instead of manually specifying the value of each column when you create this test data, Laravel allows you to define a default set of attributes for each of your [Eloquent models](/docs/{{version}}/eloquent) using "factories". To get started, take a look at the `database/factories/ModelFactory.php` file in your application. Out of the box, this file contains one factory definition:

$factory->define(App\User::class, function ($faker) {
$factory->define(App\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
Expand Down

0 comments on commit 5928582

Please sign in to comment.