Skip to content

Commit 104d45c

Browse files
committed
ITT: Database assertions readme info added.
1 parent abd8820 commit 104d45c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ Provides Laravel-specific testing helpers and asserts.
6262
- [CollectionAsserts](#collectionasserts)
6363
- [assertCollectionsEqual](#assertcollectionsequal)
6464
- [assertCollectionsNotEqual](#assertcollectionsnotequal)
65+
- [DatabaseAsserts](#databaseasserts)
66+
- [seeInDatabaseMany](#seeindatabasemany)
67+
- [dontSeeInDatabaseMany](#dontseeindatabasemany)
6568
- [LogFileAsserts](#logfileasserts)
6669
- [assertLogFileExists](#assertlogfileexists)
6770
- [assertLogFileNotExists](#assertlogfilenotexists)
@@ -126,6 +129,20 @@ Checks if passed collections are not equal according to the specified key:
126129
$this->assertCollectionsNotEqual($collection1, $collection2, 'id');
127130
```
128131
132+
### DatabaseAsserts
133+
134+
#### `seeInDatabaseMany()`
135+
136+
Checks if each of the specified rows exists in database:
137+
138+
```php
139+
$this->seeInDatabaseMany('posts', [
140+
['title' => 'First Post!'],
141+
['title' => 'Second Post!'],
142+
['title' => 'Third Post!'],
143+
]);
144+
```
145+
129146
### LogFileAsserts
130147
131148
#### `assertLogFileExists()`

0 commit comments

Comments
 (0)