File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ Provides Laravel-specific testing helpers and asserts.
9191- [EloquentAsserts](#eloquentasserts)
9292 - [assertEloquentTableEquals](#asserteloquenttableequals)
9393 - [assertEloquentTableNotEquals](#asserteloquenttablenotequals)
94+ - [assertEloquentFillableEquals](#asserteloquentfillableequals)
95+ - [assertEloquentFillableNotEquals](#asserteloquentfillablenotequals)
9496- [ExceptionAsserts](#exceptionasserts)
9597 - [willSeeException](#willseeexception)
9698- [FilesystemAsserts](#filesystemasserts)
@@ -353,6 +355,22 @@ Checks if Eloquent model table not equals to specified value:
353355$this->assertEloquentTableNotEquals(User::class, ' posts' );
354356```
355357
358+ #### `assertEloquentFillableEquals()`
359+
360+ Checks if Eloquent model fillable fields are equal to specified value:
361+
362+ ```php
363+ $this->assertEloquentFillableEquals(Post::class, [' title' ]);
364+ ```
365+
366+ #### `assertEloquentFillableNotEquals()`
367+
368+ Checks if Eloquent model fillable fields are not equal to specified value:
369+
370+ ```php
371+ $this->assertEloquentFillableNotEquals(Post::class, [' title' , ' body' ]);
372+ ```
373+
356374### ExceptionAsserts
357375
358376#### `willSeeException()`
You can’t perform that action at this time.
0 commit comments