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 @@ -94,6 +94,8 @@ Provides Laravel-specific testing helpers and asserts.
9494- [EloquentAsserts](#eloquentasserts)
9595 - [assertEloquentTableEquals](#asserteloquenttableequals)
9696 - [assertEloquentTableNotEquals](#asserteloquenttablenotequals)
97+ - [assertEloquentIsIncrementing](#asserteloquentisincrementing)
98+ - [assertEloquentIsNotIncrementing](#asserteloquentisnotincrementing)
9799 - [assertEloquentFillableEquals](#asserteloquentfillableequals)
98100 - [assertEloquentFillableNotEquals](#asserteloquentfillablenotequals)
99101 - [assertEloquentDatesEquals](#asserteloquentdatesequals)
@@ -401,6 +403,22 @@ Checks if Eloquent model table not equals to specified value:
401403$this->assertEloquentTableNotEquals(User::class, 'posts');
402404```
403405
406+ #### ` assertEloquentIsIncrementing() `
407+
408+ Checks if Eloquent model has incrementing primary key:
409+
410+ ``` php
411+ $this->assertEloquentIsIncrementing(Post::class);
412+ ```
413+
414+ #### ` assertEloquentIsNotIncrementing() `
415+
416+ Checks if Eloquent model has not incrementing primary key:
417+
418+ ``` php
419+ $this->assertEloquentIsNotIncrementing(Category::class);
420+ ```
421+
404422#### ` assertEloquentFillableEquals() `
405423
406424Checks if Eloquent model fillable fields are equal to specified value:
You can’t perform that action at this time.
0 commit comments