Skip to content

Commit 9a417f4

Browse files
committed
docs: fix sample code
1 parent f15c92e commit 9a417f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/testing/feature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Asserts that $fragment is found within the JSON response. It does not need to ma
379379
]
380380

381381
// Is true
382-
$this->assertJSONFragment(['config' => ['key-a']);
382+
$results->assertJSONFragment(['config' => ['key-a']]);
383383

384384
.. note:: This simply uses PHPUnit's own `assertArraySubset() <https://phpunit.readthedocs.io/en/7.2/assertions.html#assertarraysubset>`_
385385
method to do the comparison.

0 commit comments

Comments
 (0)