Skip to content

Commit 85d488e

Browse files
committed
Added type requirement
Added type requirement of the parameter like it is in the code
1 parent 228230c commit 85d488e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Another option is to wrap every test case in a database transaction. Again, Lara
354354

355355
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:
356356

357-
$factory->define(App\User::class, function ($faker) {
357+
$factory->define(App\User::class, function (Faker\Generator $faker) {
358358
return [
359359
'name' => $faker->name,
360360
'email' => $faker->email,

0 commit comments

Comments
 (0)