nextcloud/tests
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
..
acceptance correct delete-icon to icon-delete, fix #11128 2014-09-22 18:17:33 +02:00
core/lostpassword/controller Disable when no sendmail is available 2014-12-04 16:22:44 +01:00
data Merge pull request #12625 from owncloud/app-dependencies-libs-and-commands 2014-12-15 12:34:46 +01:00
lib Intelligent container 2014-12-23 09:50:42 +01:00
settings Mail address of users is now changable in the user management 2014-12-18 22:43:09 +01:00
apps.php load test cases from enabled apps 2012-10-08 14:26:51 +02:00
bootstrap.php Load apps in test situations 2014-09-10 17:28:25 +02:00
enable_all.php drop files_external tests from autotest - they will be executed with autotest-external.sh which is coming 2014-12-03 16:38:25 +01:00
karma.config.js migrate jQuery to bower 2014-11-04 14:28:29 +01:00
phpunit-autotest-external.xml Setup a docker container that holds a webdav instance to test files_external 2014-12-17 21:50:35 +01:00
phpunit-autotest.xml drop files_external tests from autotest - they will be executed with autotest-external.sh which is coming 2014-12-03 16:38:25 +01:00
phpunit.xml.dist Warn for password reset when files_encryption is enabled 2014-11-17 17:50:19 +01:00
preseed-config.php adding new config parameter for sqlite to specify the journal mode 2014-11-25 16:29:06 +01:00
startsessionlistener.php kill OC::$session 2014-08-29 10:22:21 +02:00