Skip to content

Commit 7c32ef7

Browse files
committed
ITT: Readme info added.
1 parent 9df67f6 commit 7c32ef7

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
@@ -28,6 +28,23 @@ Provides Laravel-specific testing helpers and asserts.
2828

2929
2. That's it! Now you can use any of provided traits in your test classes.
3030
31+
```php
32+
use Illuminated\Testing\Asserts\PageAsserts;
33+
34+
class HomePageTest extends TestCase
35+
{
36+
use PageAsserts;
37+
38+
/** @test */
39+
public function it_shows_three_featured_products()
40+
{
41+
$this->visit('/');
42+
43+
$this->seeElementTimes('.featured-product', 3);
44+
}
45+
}
46+
```
47+
3148
## Available helpers
3249
3350
> New helpers are always adding. Feel free to contribute.

0 commit comments

Comments
 (0)