Skip to content

Commit 05a2a02

Browse files
committed
ITT: New assertions added to readme.
1 parent 9895554 commit 05a2a02

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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

406424
Checks if Eloquent model fillable fields are equal to specified value:

0 commit comments

Comments
 (0)