Skip to content

Commit c62bef4

Browse files
committed
ITT: Minor fixes to seeds.
1 parent d1a16fc commit c62bef4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ Checks if each of the specified rows exists in database:
137137
138138
```php
139139
$this->seeInDatabaseMany('posts', [
140-
['title' => 'First Post!'],
141-
['title' => 'Second Post!'],
142-
['title' => 'Third Post!'],
140+
['title' => 'First Post'],
141+
['title' => 'Second Post'],
142+
['title' => 'Third Post'],
143143
]);
144144
```
145145
@@ -149,8 +149,8 @@ Checks if each of the specified rows is not exist in database:
149149
150150
```php
151151
$this->dontSeeInDatabaseMany('posts', [
152-
['title' => 'Fourth Post!'],
153-
['title' => 'Fifth Post!'],
152+
['title' => 'Fourth Post'],
153+
['title' => 'Fifth Post'],
154154
]);
155155
```
156156

tests/Asserts/DatabaseAssertsTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ private function loadMigrations()
3636

3737
private function seedDatabase()
3838
{
39-
factory(Post::class)->create(['title' => 'First Post!']);
40-
factory(Post::class)->create(['title' => 'Second Post!']);
41-
factory(Post::class)->create(['title' => 'Third Post!']);
39+
factory(Post::class)->create(['title' => 'First Post']);
40+
factory(Post::class)->create(['title' => 'Second Post']);
41+
factory(Post::class)->create(['title' => 'Third Post']);
4242
}
4343

4444
/** @test */
4545
public function it_has_see_in_database_many_assertion()
4646
{
4747
$this->seeInDatabaseMany('posts', [
48-
['title' => 'First Post!'],
49-
['title' => 'Second Post!'],
50-
['title' => 'Third Post!'],
48+
['title' => 'First Post'],
49+
['title' => 'Second Post'],
50+
['title' => 'Third Post'],
5151
]);
5252
}
5353

5454
/** @test */
5555
public function it_has_dont_see_in_database_many_assertion()
5656
{
5757
$this->dontSeeInDatabaseMany('posts', [
58-
['title' => 'Fourth Post!'],
59-
['title' => 'Fifth Post!'],
58+
['title' => 'Fourth Post'],
59+
['title' => 'Fifth Post'],
6060
]);
6161
}
6262
}

0 commit comments

Comments
 (0)