8000 Convenience method for checking response doesn't contain JSON · laravel/lumen-framework@1122b1b · GitHub
[go: up one dir, main page]

Skip to 8000 content

Commit 1122b1b

Browse files
author
Koen Woortman
committed
Convenience method for checking response doesn't contain JSON
1 parent ca82036 commit 1122b1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Testing/Concerns/MakesHttpRequests.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,17 @@ protected function seeJsonContains(array $data, $negate = false)
328328
return $this;
329329
}
330330

331+
/**
332+
* Assert that the response doesn't contain the given JSON.
333+
*
334+
* @param array $data
335+
* @return $this
336+
*/
337+
protected function seeJsonDoesntContains(array $data)
338+
{
339+
return $this->seeJsonContains($data, true);
340+
}
341+
331342
/**
332343
* Format the given key and value into a JSON string for expectation checks.
333344
*

0 commit comments

Comments
 (0)
0