Skip to content

Commit c4cce7f

Browse files
committed
ITT: Database asserts added.
1 parent 675ce9a commit c4cce7f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Asserts/DatabaseAsserts.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Illuminated\Testing\Asserts;
4+
5+
trait DatabaseAsserts
6+
{
7+
protected function seeInDatabaseMany($table, $rows)
8+
{
9+
foreach ($rows as $row) {
10+
$this->seeInDatabase($table, $row);
11+
}
12+
}
13+
14+
protected function dontSeeInDatabaseMany($table, $rows)
15+
{
16+
foreach ($rows as $row) {
17+
$this->dontSeeInDatabase($table, $row);
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)