Joas Schilling
ea4c25609d
Replace uniqid calls with $this->getUniqueID so tests pass again on windows
9 years ago
Bjoern Schiessle
bf2c9be066
concatenate queries with 'or'
9 years ago
Joas Schilling
dfde04291e
Move share interfaces to own files so they can be autoloaded
9 years ago
Robin Appelman
33b64868d7
Add storage and cache wrappers to apply a permissions mask to a storage
9 years ago
Robin Appelman
abb6e89c5d
Add storage and cache wrappers to jail a storage to a subfolder
9 years ago
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)`.
9 years ago
Joas Schilling
e1f3abf7a5
Correctly namespace and autoload DatabaseException
9 years ago
Thomas Müller
5d4b7e0e2b
fix failing unit test for the temp manager - concurrently executed unit tests influence each other
9 years ago
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
9 years ago
Thomas Müller
5ce34fbaf6
handle invalid xml file
9 years ago
Thomas Müller
d4f107d4dd
simplify xml parser code
9 years ago
Thomas Müller
c503ecd544
Introduce app info xml parser including basic unit test - necessary for #10777
9 years ago
Lukas Reschke
216d617938
Remove OC_Migrate
This is unused legacy code. Let it die with ~~~honor~~ fire.
Fixes https://github.com/owncloud/core/issues/12346
9 years ago
Bjoern Schiessle
a7ebfe87c9
also check for the correct owner if it was submitted
9 years ago
Miguel Prokop
397f14ed86
Consolidate if statement, and update unit test
9 years ago
Lukas Reschke
5f6f54e785
Rename providers to not begin with test
Fixes https://github.com/owncloud/core/issues/12347
9 years ago
Morris Jobke
75d37b69f6
fix unit tests of mdb2scheamreader
9 years ago
Morris Jobke
593ef76e36
Revert "drop OC_Preferences::getUsers and getApps"
This reverts commit 09fd34eed9
.
9 years ago
Morris Jobke
09fd34eed9
drop OC_Preferences::getUsers and getApps
9 years ago
Joas Schilling
84d358a761
Clean up the test data in tearDownAfterClass()
The result of the listener should then be empty and can be removed
9 years ago
Joas Schilling
6202ca33ba
Make remaining files extend the test base
9 years ago
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
9 years ago
Joas Schilling
76ebd3a050
Make apps/ extend the \Test\TestCase and fix overwritten methods
9 years ago
Joas Schilling
bb540722cd
Use base class to reset the file mapper
9 years ago
Bernhard Posselt
4e90c44301
add postfix
add postfix
9 years ago
Lukas Reschke
d0a30b0e55
Ignore port for trusted domains
This lead to a lot of confusion in the past and did not really offer any value. Let's remove the port check therefore. (it's anyways not really a part of the domain)
Fixes https://github.com/owncloud/core/issues/12150 and https://github.com/owncloud/core/issues/12123 and also a problem reported by @DeepDiver1975.
Conflicts:
lib/private/request.php
9 years ago
Bjoern Schiessle
01c50d242b
use the new base class for unit tests
9 years ago
Bjoern Schiessle
5192641447
make sure that we don't find the wrong shares if a user and a group have the same ID
9 years ago
Joas Schilling
ccc1001138
Add tests for absolute paths on windows
9 years ago
Joas Schilling
806284f06c
Refactor tests to use a dataProvider method
9 years ago
Joas Schilling
6625d5c88f
Correctly restore previous root mount point after testing
9 years ago
Joas Schilling
289a27778e
Correctly refresh the apps list after removing the mock
9 years ago
Joas Schilling
53318c4bb5
Fix Files\Storage\Home::testRoot()
9 years ago
Joas Schilling
39ae569c5c
Correctly close handle of directory when listing certificates
9 years ago
Joas Schilling
a3a064fe96
Skip some more tests on Windows which just can not work at all
9 years ago
Lukas Reschke
cd5925036a
Check if app is enabled for user
Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps
9 years ago
Morris Jobke
952abdc51a
Drop form_factor that is appended to JS, CSS and template filenames
9 years ago
Adam Williamson
e0ae87051f
storage test: use new file for testTouchCreateFile()
this test would never succeed, because the previous test -
testFOpen() - creates the file 'foo', but testTouchCreateFile()
starts out by asserting it doesn't exist. Change the test to
use a file called 'touch' instead (which does not previously
exist).
9 years ago
Robin Appelman
43eb375ace
Add \OC\App\Manager to handle enabling/disabling apps
9 years ago
Joas Schilling
a9c2e5a08e
Windows does not support CHMOD, therefor we can not test not writable folders
9 years ago
Robin Appelman
d26a427f92
Also propagate etag changes when the watcher finds a changed file
9 years ago
Joas Schilling
f2282e4251
Test LargeFileHelperGetFileSize also with ascii only characters
And skip the UTF8 names on Windows as they are not supported
9 years ago
Joas Schilling
216ef617db
Do not use uniqid in Group and User tests as it is not unique on windows
9 years ago
Joas Schilling
62047f86f5
Testcase base class
9 years ago
Lukas Reschke
24ca2d858f
Add OCP\Security\IHasher
Public interface for hashing which also works with legacy ownCloud hashes and supports updating the legacy hash via a passed reference.
Follow-up of https://github.com/owncloud/core/pull/10219#issuecomment-61624662
Requires https://github.com/owncloud/3rdparty/pull/136
9 years ago
Robin Appelman
1eefc21329
Remove confusingly names \OC\User\Manager::delete and fix the automatic cache cleanup instead
9 years ago
Bernhard Posselt
91a23bfa9c
fix typo in content type
9 years ago
Thomas Müller
f776bcd4a0
remove unnecessary require calls - the ownCloud class loader is supposed to take care of this
9 years ago
Thomas Müller
2f19de11e4
adding console command to generate javascript translation files based on existing php translation files
read server side translations from json files
9 years ago
Bernhard Posselt
0696099bad
add dataresponse
fix docstrings
adjust copyright date
another copyright date update
another header update
implement third headers argument, fix indention, fix docstrings
fix docstrings
9 years ago