diff --git a/tests/Testing/TestResponseTest.php b/tests/Testing/TestResponseTest.php index 5535bd3fd8f3..839593b936e0 100644 --- a/tests/Testing/TestResponseTest.php +++ b/tests/Testing/TestResponseTest.php @@ -198,6 +198,18 @@ public function testAssertViewHasWithArray() $response->assertViewHas(['foo' => 'bar']); } + public function testAssertViewHasAll() + { + $response = $this->makeMockResponse([ + 'render' => 'hello world', + 'gatherData' => ['foo' => 'bar'], + ]); + + $response->assertViewHasAll([ + 'foo' => 'bar', + ]); + } + public function testAssertViewMissing() { $response = $this->makeMockResponse([