diff --git a/http-tests.md b/http-tests.md index 7a5dabbb869..ae6a9b89123 100644 --- a/http-tests.md +++ b/http-tests.md @@ -588,6 +588,12 @@ class ExampleTest extends TestCase } ``` +The second parameter of `assertJsonPath` method accepts enum cases, which will be automatically resolved to their underlying scalar values during the assertion: + +```php +$response->assertJsonPath('team.owner.name', Owner::Darian); +``` + The `assertJsonPath` method also accepts a closure, which may be used to dynamically determine if the assertion should pass: ```php