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 e47be73 commit eb00c1bCopy full SHA for eb00c1b
tests/Testing/TestResponseTest.php
@@ -1702,6 +1702,18 @@ public function testAssertSessionHas()
1702
$response->assertSessionHas(['foo', 'bar']);
1703
}
1704
1705
+ public function testAssertSessionMissing()
1706
+ {
1707
+ $this->expectException(AssertionFailedError::class);
1708
+
1709
+ app()->instance('session.store', $store = new Store('test-session', new ArraySessionHandler(1)));
1710
1711
+ $store->put('foo', 'value');
1712
1713
+ $response = TestResponse::fromBaseResponse(new Response());
1714
+ $response->assertSessionMissing('foo');
1715
+ }
1716
1717
public function testAssertSessionHasInput()
1718
{
1719
app()->instance('session.store', $store = new Store('test-session', new ArraySessionHandler(1)));
0 commit comments