Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why IncomingRequest has setCookie()? #52

Closed
kenjis opened this issue Apr 1, 2016 · 2 comments
Closed

Why IncomingRequest has setCookie()? #52

kenjis opened this issue Apr 1, 2016 · 2 comments

Comments

@kenjis
Copy link
Member

kenjis commented Apr 1, 2016

https://github.com/lonnieezell/CodeIgniter4/blob/develop/system/HTTP/IncomingRequest.php#L307
It sets a cookie to a response, doesn't it?

@lonnieezell
Copy link
Member

You're right. It does belong in the response. I'm sure it got left there simply because it was in the Input class in CI3.

@kenjis
Copy link
Member Author

kenjis commented Apr 2, 2016

Okay, I hope the Response class has cookie data.
So that we can test cookie data like: https://github.com/kenjis/ci-phpunit-test/blob/master/docs/FunctionAndClassReference.md#testcaseassertresponsecookiename-value-allow_duplicate--false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants