Skip to content

Commit

Permalink
Added type requirement
Browse files Browse the repository at this point in the history
Added type requirement of the parameter like it is in the code
  • Loading branch information
ivandokov committed Jul 14, 2015
1 parent 228230c commit 85d488e
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 85d488e

Please sign in to comment.