nextcloud/tests/lib
Roeland Jago Douma d0f8fa4619 Check the actual status code for 204 and 304
The header is the full http header like: HTTP/1.1 304 Not Modified
So comparing this to an int always yields false
This also makes the 304 RFC compliant as the resulting content length
should otherwise be the length of the message and not 0.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-05-24 17:52:33 +00:00
..
Accounts Use IAccountManager constants 2018-10-15 13:30:31 +02:00
Activity Remove deprecated publishActivity function 2018-10-05 12:55:45 +02:00
App Remove "socialsharing_googleplus" from Social Sharing Bundle 2019-03-08 08:06:51 +00:00
AppFramework Check the actual status code for 204 and 304 2019-05-24 17:52:33 +00:00
Archive Remove \OCP\Files::tmpFolder 2018-03-19 10:54:39 +01:00
Authentication Use the defined func()->count() instead of manual counting 2018-11-08 15:44:45 +01:00
BackgroundJob fixup! fixup! Add backgroundjobs to OCP 2018-10-09 15:25:56 +02:00
Cache Make cache tests a bit more clear 2017-05-04 19:37:40 -03:00
Calendar RoomManager/ResourceManager: Inject IServerContainer instead of using OC Server 2018-10-08 01:50:17 +02:00
Collaboration/Collaborators Fix injection to get the user id 2018-10-30 11:41:56 +01:00
Command Add proper EOL 2017-09-04 14:21:44 +02:00
Comments Match mentions when the username is wrapped in quotes 2018-11-07 12:33:44 +01:00
Contacts/ContactsMenu Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
DB Merge pull request #11942 from nextcloud/techdebt/noid/use-count-function 2018-11-12 17:43:56 +01:00
Diagnostics Adjust query/event logging code in favour of more complex owncloud/diagnostics (#27643) 2017-04-26 13:19:43 +02:00
Encryption update encryption wrapper tests 2018-11-29 16:36:35 +01:00
Federation Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
Files Avoid calculating folder size for parent that needs scan. 2019-03-08 08:14:33 +00:00
GlobalScale add new config switched for the global scale architecture 2017-05-29 18:19:28 +02:00
Group Tests fix 2018-06-15 23:00:59 +02:00
Hooks Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
Http/Client Fix HTTP client given options being overriden by default options 2018-06-14 21:36:04 +02:00
IntegrityCheck Handle strict typing in Checker and fix tests 2018-02-21 21:09:08 +01:00
L10N Add simple unit test for findLanguageFromLocale 2018-09-23 20:12:00 +02:00
Lock prevent lock values from going negative with memcache backend 2018-07-05 14:39:10 +02:00
Lockdown Save the scope of an auth token in the session 2017-04-05 17:58:33 +02:00
Log Fix tests 2018-10-02 18:37:57 +02:00
Mail Add testcases for pipe mode 2018-11-29 16:44:36 +00:00
Memcache Drop support for xcache 2018-08-12 17:14:08 +02:00
Migration Use ::class in test mocks 2017-10-24 17:45:32 +02:00
Notification Fix "Undefined method setExpectedException()" 2018-01-24 18:10:16 +01:00
OCS PrivateData to app 2017-07-21 08:51:14 +02:00
Preview Only generate previews in powers of 4 and set min 2018-10-31 19:34:42 +01:00
PublicNamespace Migrate tests for contacts manager to correct test class 2018-03-21 10:43:18 +01:00
Remote Add some more tests for ocs remote api 2017-12-08 16:37:14 +01:00
Repair Log and continue on Dav reader failure 2018-12-05 21:54:50 +00:00
RichObjectStrings Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
Security Fix the thorrtler whitelist bitmask 2019-02-12 07:56:07 +00:00
Session Use ::class in test mocks of encryption app 2017-10-26 13:56:56 +02:00
Settings Fix l10n for SettingsManager by injecting the l10n factory 2019-05-21 22:52:06 +00:00
Share Get rid of shareItem 2018-05-23 19:51:37 +02:00
Share20 Correctly determinate the owner in case of shared external storages 2019-02-19 09:29:17 +00:00
Support/CrashReport Add breadcrumb support to crash reporters 2018-09-05 20:58:39 +02:00
SystemTag Use ::class in test mocks 2017-10-24 17:45:32 +02:00
Template Make sure to always load the latest icons-vars.css file 2018-11-12 11:00:56 +01:00
Traits Cleanup OC_User and OCP\User 2018-01-16 18:39:11 +01:00
Updater Backend work to provide NC whats New info to users 2018-07-05 14:33:08 +02:00
User Use a case insensitive search for email 2018-12-20 15:19:15 +00:00
Util extend tests for status quo 2018-01-03 13:24:56 +01:00
AllConfigTest.php Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +02:00
APITest.php Remove unused methods and constants from legacy OC_API 2018-03-12 18:03:25 +01:00
AppConfigTest.php Fix tests 2017-01-12 10:49:22 +01:00
AppTest.php always enable cloud federation api 2018-07-02 12:43:43 +02:00
AutoLoaderTest.php Fix unit tests 2016-05-20 16:35:07 +02:00
AvatarManagerTest.php Use \OC\User\Manager internally in the avatarmanager 2018-01-14 21:32:54 +01:00
AvatarTest.php fixup! Fix comment and cap-height 2018-10-23 14:30:23 +02:00
CapabilitiesManagerTest.php Properly log the full exception instead of only the message 2018-01-23 10:57:21 +01:00
ConfigTest.php Check for boolean false and add tests 2017-04-04 15:56:50 -05:00
ContactsManagerTest.php Migrate tests for contacts manager to correct test class 2018-03-21 10:43:18 +01:00
DateTimeFormatterTest.php Provide tests for future timestamp formatting 2017-10-23 14:20:21 +02:00
ErrorHandlerTest.php FIx lib/ a-d 2016-05-19 09:27:21 +02:00
FileChunkingTest.php Use ::class in test mocks of dav app 2017-10-26 10:16:12 +02:00
FilesTest.php Make sure memory limit is > post size and upload filesize 2016-09-13 16:50:36 +02:00
HelperStorageTest.php fix quota tests for external storage 2017-05-12 11:32:16 -05:00
HookHelper.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
ImageTest.php Improve OC_Image code to not guess the type of input, but actually request the specific methods to be called 2018-01-18 13:40:55 +01:00
InfoXmlTest.php Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
InstallerTest.php Update CRL to contain revoked files_external_dropbox, passman & payback 2019-02-14 13:53:48 +00:00
LargeFileHelperGetFileSizeTest.php Remove unneeded Windows logic 2016-09-01 10:47:57 +02:00
LargeFileHelperTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
LegacyHelperTest.php Deprecate unused, private OC_Helper::linkToPublic 2018-10-08 18:29:52 +02:00
LoggerTest.php revert Log's dependency to SystemConfig to work during Installation 2018-04-26 12:10:53 +02:00
MemoryInfoTest.php Adds license to files. Updates the branch. 2018-08-20 20:46:23 +02:00
NaturalSortTest.php Fix lib/ 2016-05-19 09:38:52 +02:00
NavigationManagerTest.php Use non-absolute logout URL to fix wrong URL in reverse proxy scenario 2019-05-08 23:38:42 +02:00
RepairStepTest.php Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +02:00
ServerTest.php Remove deprecated HTTPHelper 2018-03-13 21:54:56 +01:00
SetupTest.php Add more test cases 2018-09-30 12:24:38 +02:00
SubAdminTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
TagsTest.php Get rid of shareItem 2018-05-23 19:51:37 +02:00
TemplateFunctionsTest.php Fix lib/ 2016-05-19 09:38:52 +02:00
TempManagerTest.php Loglevel is an int 2018-02-27 10:45:35 +01:00
TestCase.php whitelist audit.log 2018-06-29 11:03:13 +02:00
TestMoveableMountPoint.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
UpdaterTest.php Revert "Wait for cron to finish before running upgrade command" 2018-11-01 15:23:40 +01:00
UrlGeneratorTest.php Allow empty strings in getAbsoluteURL 2018-11-20 13:36:16 +01:00
UtilCheckServerTest.php Use SystemConfig instead of AllConfig for DB stuff 2017-03-19 15:53:49 -06:00
UtilTest.php Remove \OCP\Files::tmpFolder 2018-03-19 10:54:39 +01:00