Robin Appelman
f4701d7721
Add public api for mount configurations
9 years ago
Lukas Reschke
d2e8358da2
Fix unit test
9 years ago
Robin Appelman
672495a1a3
make \OC\Files\Node\Node implement the FileInfo interface
9 years ago
Lukas Reschke
81541c56b6
Add test for IPv6 without port
9 years ago
Thomas Müller
b55ac514ac
no nested xml tags on dependencies
9 years ago
Thomas Müller
b028a6afac
adjust dependency analyzer to use attributes properly
9 years ago
Thomas Müller
c80ec91f28
switch to different parsing implementation to get xml attributes properly handled
9 years ago
Thomas Müller
ba52c996cf
adding supported databases
9 years ago
Thomas Müller
b469e9f6fb
introduce dependency analyzer to take care of app dependencies
some more unit tests on xml info parser
9 years ago
Morris Jobke
bf1b62a34a
PHP < 5.4 is not supported anymore - see #12606
9 years ago
Morris Jobke
2c5e4b3d3f
Remove last traces of travis integration
9 years ago
Lukas Reschke
69f5f6649e
Trim port from domain
Depending on the used environment the port might be appended to the host header resulting in an inaccessible instance when initially setting up on a system with a different HTTP or HTTPS port. (for example test:500)
To test this setup ownCloud under a different port with and without this patch. (heads-up: localhost is always white-listed, so use a different domain)
9 years ago
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