Skip to content

Commit 77dcaef

Browse files
authored
Merge pull request #4004 from kenjis/fix-feature-testing-assertJSONFragment
docs: fix feature testing sample code
2 parents 43ee648 + 73f6261 commit 77dcaef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

user_guide_src/source/testing/feature.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +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']);
383-
384-
.. note:: This simply uses PHPUnit's own `assertArraySubset() <https://phpunit.readthedocs.io/en/7.2/assertions.html#assertarraysubset>`_
385-
method to do the comparison.
382+
$result->assertJSONFragment(['config' => ['key-a']]);
386383

387384
**assertJSONExact($test)**
388385

0 commit comments

Comments
 (0)