We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assertViewHasAll
1 parent 6ba2ccb commit 3faf9efCopy full SHA for 3faf9ef
tests/Testing/TestResponseTest.php
@@ -198,6 +198,18 @@ public function testAssertViewHasWithArray()
198
$response->assertViewHas(['foo' => 'bar']);
199
}
200
201
+ public function testAssertViewHasAll()
202
+ {
203
+ $response = $this->makeMockResponse([
204
+ 'render' => 'hello world',
205
+ 'gatherData' => ['foo' => 'bar'],
206
+ ]);
207
+
208
+ $response->assertViewHasAll([
209
+ 'foo' => 'bar',
210
211
+ }
212
213
public function testAssertViewMissing()
214
{
215
$response = $this->makeMockResponse([
0 commit comments