Skip to content

Commit 277c2d1

Browse files
committed
add create security cookie test
1 parent 5cbe0f4 commit 277c2d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
<?php
2+
3+
it('create security cookie', function () {
4+
$response = $this->get('_native/api/cookie')->assertRedirect('/');
5+
$cookie = $response->headers->getCookies()[0];
6+
7+
$this->assertEquals('_php_native', $cookie->getName());
8+
$this->assertEquals('localhost', $cookie->getDomain());
9+
$this->assertTrue($cookie->isHttpOnly());
10+
});

0 commit comments

Comments
 (0)