aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/http/JSONResponseTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-123/+0
| | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Fix namespaces in AppFramework testsJoas Schilling2016-05-181-1/+1
|
* Rename data provider to avoid risky test warningLukas Reschke2015-09-091-2/+2
| | | | | | | | | ``` 06:49:56 There was 1 risky test: 06:49:56 06:49:56 1) OC\AppFramework\Http\JSONResponseTest::testRenderProvider 06:49:56 This test did not perform any assertions ```
* Encode HTML tags in JSONLukas Reschke2015-09-031-6/+20
| | | | While not encoding the HTML tags in the JSON response is perfectly fine since we set the proper mimetype as well as disable content sniffing a lot of automated code scanner do report this as security bug. Encoding them leads to less discussions and a lot of saved time.
* Check if response could get generatedLukas Reschke2015-07-021-0/+11
| | | | | | | | `json_encode` fails hard on PHP >= 5.5 if a non UTF-8 value is specified by returning false. Older PHP versions just nullify the value which makes it at least somewhat usable. This leads to very confusing errors which are very hard to debug since developers are usually not aware of this. In this case I'd consider throwing a fatal exception – since it arguably is an error situation – is a fair solution since this makes developers and administrators aware of any occurence of the problem so that these bugs can get fixed. Fixes https://github.com/owncloud/core/issues/17265
* Make remaining files extend the test baseJoas Schilling2014-11-191-1/+2
|
* fix typo in content typeBernhard Posselt2014-11-051-1/+1
|
* remove unnecessary require calls - the ownCloud class loader is supposed to ↵Thomas Müller2014-10-301-4/+0
| | | | take care of this
* adjust license headers to new mail addressBernhard Posselt2014-05-111-2/+2
|
* Remove uneeded usages of nosniffLukas Reschke2014-04-131-7/+0
|
* Chainable Response in AppFrameworkThomas Tanghus2014-03-091-0/+10
|
* kill superfluent classloader from tests - this approach might be of interest ↵Thomas Müller2013-08-211-1/+3
| | | | within the apps
* initial import of appframeworkThomas Müller2013-08-171-0/+96