File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,24 @@ Provides Laravel-specific testing helpers and asserts.
2626 composer require illuminated/testing-tools --dev
2727 ```
2828
29- 2. That ' s it! Now you can use any of provided traits in your test classes.
29+ 2. Use ` Illuminated \T esting \T estingTools ` trait in your base ` TestCase ` class:
3030
3131 ` ` ` php
32- use Illuminated\Testing\Asserts\PageAsserts ;
32+ use Illuminated\T esting\T estingTools ;
3333
34- class HomePageTest extends TestCase
34+ abstract class TestCase extends Illuminate \F oundation \T esting \ T estCase
3535 {
36- use PageAsserts;
36+ use TestingTools;
37+
38+ // ...
39+ }
40+ ` ` `
3741
42+ 3. That' s it! Now you can use any of provided helpers and asserts in your test classes.
43+
44+ ```php
45+ class HomePageTest extends TestCase
46+ {
3847 /** @test */
3948 public function it_shows_three_featured_products()
4049 {
You can’t perform that action at this time.
0 commit comments