server/tests/lib
Bernhard Posselt f195123765 Intelligent container
* resolves dependencies by type hint or variable name
* simpler route.php
* implementation of https://github.com/owncloud/core/issues/12829

Generates and injects parameters automatically. You can now build full classes like

    $c->query('MyClassName')

without having to register it as a service. The resolved object's instance will be saved by using registerService. If a constructor parameter is not type hinted, the parameter name will be taken.

Therefore the following two implementations are identical:

    class Class1 { function __construct(MyClassName $class)
    class Class1 { function __construct($MyClassName)

This makes it possible to also inject primitive values such as strings, arrays etc.

In addition if the query could not be resolved, a `QueryException` is now thrown

Routes can now be returned as an array from `routes.php` and an `appinfo/application.php` is optional

Old commit messages:

make it possible to return the routes instead of having to intialize the application
try to get the controller by convention
add first implementation of automatic resolve
add another test just to be sure
store the resolved object
more tests
add phpdoc to public app.php method
use the same variable for the public app.php method
deprecate old methods and add services for public interfaces
deprecated getServer method
disallow private api injection for apps other than core or settings (settings should be an app goddamnit :D)
register userid because its such an often used variable
fix indention and leading slash
use test namespace
add deprecation reasons, remove private api usage checks and remove deprecation from getServer()
add additional public interfaces
add public interface for rootfolder
fix syntax error
remove deprecation from methods where no alternative is there yet
remove deprecated from method which has no alternative
add timezone public service for #12881
add another deprecation hint
move deprecation into separate branch
remove dead comment
first try to get the namespace from the info.xml, if it does not exist, just uppercase the first letter
also trim the namespace name
add an interface for timefactory
move timefactory to public and add icontrollermethodreflector
keep core interface
fix copyright date in headers
2014-12-23 09:50:42 +01:00
..
app Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
appframework Intelligent container 2014-12-23 09:50:42 +01:00
archive Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
backgroundjob Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
cache Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
connector/sabre Merge pull request #12865 from owncloud/files-tags-webdav 2014-12-19 09:33:28 +01:00
contacts Make class compatible 2014-12-09 12:25:22 +01:00
db Properly call parent::tearDown() in MDB2SchemaManager::tearDown(). 2014-12-20 15:30:35 +01:00
files Merge pull request #11810 from owncloud/hhvm-autotest 2014-12-22 14:12:03 +01:00
group add isAdmin and isInGroup methods for the group manager 2014-12-17 17:41:57 +01:00
hooks Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
memcache Add Redis cache implementation, prefer over memcached, tests & config sample 2014-12-10 12:24:20 +01:00
ocs Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
public Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
repair Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
security Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
session Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
share Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
template Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
user introduce names for user backends - IUserBackend 2014-12-19 10:17:17 +01:00
activitymanager.php Add test for getSpecialParameterList() 2014-12-11 15:01:45 +01:00
allconfig.php Workaround to fix the too early init dilemma 2014-12-08 22:33:36 +01:00
api.php Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
app.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
appconfig.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
archive.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
autoloader.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
avatar.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
cache.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
config.php drop unused isDebugMode and setDebugMode of OC_Config 2014-12-08 22:42:44 +01:00
contactsmanager.php Mock interface 2014-12-08 13:18:00 +01:00
datetimeformatter.php Use a fixed timestamp so we dont switch days/years with the getTimestampAgo 2014-12-11 13:22:05 +01:00
db.php Replace uniqid calls with $this->getUniqueID so tests pass again on windows 2014-12-03 12:10:55 +01:00
dbschema.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
errorHandler.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
geo.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
group.php Do not use uniqid in Group and User tests as it is not unique on windows 2014-11-06 17:36:35 +01:00
helper.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
helperstorage.php reduce OC_Preferences, OC_Config and \OCP\Config usage 2014-12-08 22:42:37 +01:00
httphelper.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
image.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
installer.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
l10n.php Correctly fallback to english, if the plural case is not translated 2014-12-11 12:42:21 +01:00
largefilehelper.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
largefilehelpergetfilesize.php Check if open_basedir is set 2014-12-11 00:09:55 +01:00
logger.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
mail.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
naturalsort.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
preview.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
repair.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
request.php Add test for IPv6 without port 2014-12-04 12:16:33 +01:00
setup.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
streamwrappers.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
tags.php Add user parameter to tag manager 2014-12-11 12:22:28 +01:00
template.php Deprecate Util::formatDate() 2014-12-10 11:58:56 +01:00
templatelayout.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
tempmanager.php fix failing unit test for the temp manager - concurrently executed unit tests influence each other 2014-11-25 22:16:48 +01:00
testcase.php Add login/logout to TestCase base class 2014-12-10 16:11:27 +01:00
updater.php Next step in server-to-server sharing next generation, see #12285 2014-12-19 15:20:24 +01:00
urlgenerator.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
user.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
util.php Move timezone logic out of server.php 2014-12-16 16:16:22 +01:00
utilcheckserver.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00
vobject.php Make root tests extend the \Test\TestCase 2014-11-19 14:53:51 +01:00