Skip to content

Commit 6b8c784

Browse files
committed
Change the main example
1 parent d198bd6 commit 6b8c784

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ Laravel-specific Testing Helpers and Assertions.
5454
3. Use any of the provided helpers and assertions in your tests:
5555

5656
```php
57-
class ExampleCommandTest extends TestCase
57+
class ExampleTest extends TestCase
5858
{
5959
/** @test */
60-
public function it_logs_hello_world()
60+
public function it_has_lots_of_useful_assertions()
6161
{
62-
$this->artisan('example');
63-
64-
$this->seeInLogFile('example.log', 'Hello World!');
62+
$this->assertDatabaseHasMany('posts', [
63+
['title' => 'Awesome!'],
64+
['title' => 'Multiple rows check'],
65+
['title' => 'Can be done in one assertion'],
66+
]);
6567
}
6668
}
6769
```

0 commit comments

Comments
 (0)