Answer the question
In order to leave comments, you need to log in
Why is the test failing?
Should contain [{"email":"[email protected]"}] in [{"email":"[email protected]"},...{"email":"[email protected]",}...}]
Failed asserting that an array has the subset Array &0 (
0 => Array &1 (
'email' => '[email protected]'
)
).
--- Expected
+++ Actual
@@ @@
[0] => Array
(
- [email] => [email protected]
+ [email] => [email protected]
array:3 [
"status" => "success"
"data" => array:5 [
0 => array:5 [
"email" => "[email protected]"
]
1 => array:5 [
"email" => "[email protected]"
...
static::assertArraySubset(
[
[
'email' => '[email protected]',
],
],
$content['data'],
true,
\sprintf(
'Should contain %s in %s',
\json_encode([['email' => '[email protected]',],]),
\json_encode($content['data'])
)
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question