File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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()`
You can’t perform that action at this time.
0 commit comments