File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ abstract class TestCase extends BaseTestCase
27
27
```
28
28
29
29
## Assertions
30
- This package adds several assertions helpful when writing [ Http Tests] ( https://laravel.com/docs/http-tests ) .
30
+ This package adds several assertions helpful when writing [ HTTP Tests] ( https://laravel.com/docs/http-tests ) .
31
31
32
32
33
33
``` php
@@ -77,6 +77,14 @@ assertValidationRuleContains($rule, string $class)
77
77
78
78
Verifies the rule or rules contains an instance of the given [ Rule] ( https://laravel.com/docs/validation#custom-validation-rules ) class.
79
79
80
+
81
+ ``` php
82
+ assertViewHasNull($key)
83
+ ```
84
+
85
+ Verifies the view data ` $key ` has an explicit value of ` null ` . ** Note** : is a ` TestResponse ` assertion. It must be called on the response of a view.
86
+
87
+
80
88
## Matchers
81
89
``` php
82
90
LaravelMatchers::isModel(Model $model = null)
You can’t perform that action at this time.
0 commit comments