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.
1 parent 2519bab commit 6f743e2Copy full SHA for 6f743e2
tests/Testing/TestResponseTest.php
@@ -1669,6 +1669,20 @@ public function testAssertSessionHasErrors()
1669
$response->assertSessionHasErrors(['foo']);
1670
}
1671
1672
+ public function testAssertSessionHas()
1673
+ {
1674
+ app()->instance('session.store', $store = new Store('test-session', new ArraySessionHandler(1)));
1675
+
1676
+ $store->put('foo', 'value');
1677
+ $store->put('bar', 'value');
1678
1679
+ $response = TestResponse::fromBaseResponse(new Response());
1680
1681
+ $response->assertSessionHas('foo');
1682
+ $response->assertSessionHas('bar');
1683
+ $response->assertSessionHas(['foo', 'bar']);
1684
+ }
1685
1686
public function testGetEncryptedCookie()
1687
{
1688
$container = Container::getInstance();
0 commit comments