nextcloud/tests/lib/appframework
Lukas Reschke 048139074d Add functions to modify cookies to response class
Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code.

This PR adds some basic functionalities to add and invalidate cookies.

Usage:
```php
$response = new TemplateResponse(...);
$response->addCookie('foo', 'bar');
$response->invalidateCookie('foo');
$response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00'));
```

Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.
2014-11-27 14:19:00 +01:00
..
controller Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
db Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
dependencyinjection Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
http Add functions to modify cookies to response class 2014-11-27 14:19:00 +01:00
middleware Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
routing Merge pull request #12294 from owncloud/route-postfix 2014-11-24 16:32:54 +01:00
utility Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
AppTest.php Add functions to modify cookies to response class 2014-11-27 14:19:00 +01:00