aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #21216 from owncloud/fopen-statcacheThomas Müller2015-12-281-0/+13
|\ | | | | Clear SMB statcache after fopen
| * test for statcache after fopenRobin Appelman2015-12-151-0/+13
| |
* | Fix unit testRoeland Jago Douma2015-12-241-2/+6
| |
* | prefer scalar type hints over phpdoc annotationBernhard Posselt2015-12-241-0/+19
| | | | | | | | | | | | use method exists lookup to be safe and not break on old hhvm versions add test that checks if type hint is preferred over annotation
* | Restore DB connection after failureVincent Petry2015-12-211-2/+12
| | | | | | | | | | | | | | | | | | In case of failure, PHPUnit seems to skip `tearDown`, so any useful assertion messages cannot be shown because `tearDownAfterClass` is throwing an error because of database usage. This commit makes sure we also restore the database in `tearDownAfterClass` to prevent the data root restoration to fail
* | Merge pull request #21289 from ↵Thomas Müller2015-12-211-2/+9
|\ \ | | | | | | | | | | | | owncloud/issue-20399-keep-periodic-background-jobs Do not delete background jobs, in case an exception occured
| * | Fix the test to expect the new behaviourJoas Schilling2015-12-181-2/+9
| | |
* | | Merge pull request #21290 from owncloud/public-api-usage-getversionThomas Müller2015-12-183-6/+6
|\ \ \ | | | | | | | | Use OCP\Util::getVersion instead of the internal private implementation
| * | | Use OCP\Util::getVersion instead of the internal private implementationMorris Jobke2015-12-183-6/+6
| | | |
* | | | Merge pull request #21288 from owncloud/deprecated_helper_mimetypesThomas Müller2015-12-181-22/+0
|\ \ \ \ | |/ / / |/| | | Remove deprecated OC_Helper mimetype functions
| * | | Removed deprecated unsused function OC_Helper::getStringMimeTypeRoeland Jago Douma2015-12-181-10/+0
| | | |
| * | | Removed deprecated OC_Helper::getSecureMimeTypeRoeland Jago Douma2015-12-181-12/+0
| | | |
* | | | Merge pull request #21283 from owncloud/cleanup_configThomas Müller2015-12-182-5/+14
|\ \ \ \ | | | | | | | | | | Cleanup OC_Config mess
| * | | | Inject Config into SystemConfigRoeland Jago Douma2015-12-182-5/+14
| | | | |
* | | | | Merge pull request #21280 from owncloud/drop-unused-methodsThomas Müller2015-12-181-120/+0
|\ \ \ \ \ | |_|_|/ / |/| | | | OC_Helper::makeURLAbsolute is not used anymore
| * | | | Move OC_Helper code to OCP\Util for linkToRemoteMorris Jobke2015-12-181-32/+0
| | | | |
| * | | | properly use OCP\Util instead of OC_HelperMorris Jobke2015-12-181-46/+0
| | | | |
| * | | | OC_Helper::makeURLAbsolute is not used anymoreMorris Jobke2015-12-181-42/+0
| |/ / /
* | | | Merge pull request #21277 from owncloud/querybuild-joblistThomas Müller2015-12-181-9/+4
|\ \ \ \ | |_|/ / |/| | | Use the query builder for the joblist queries
| * | | Use the query builder for the joblist queriesJoas Schilling2015-12-181-9/+4
| | | |
* | | | Use TempManager instead of tmpFileMorris Jobke2015-12-183-6/+6
| | | |
* | | | Use TempManager instead of tmpFolderMorris Jobke2015-12-1812-13/+13
| |/ / |/| |
* | | Merge pull request #21268 from owncloud/cleanup-OC_Helper-getFileNameMimeTypeThomas Müller2015-12-181-9/+0
|\ \ \ | | | | | | | | Use proper public API for OC_Helper::getFileNameMimeType
| * | | Use proper public API for OC_Helper::getFileNameMimeTypeMorris Jobke2015-12-171-9/+0
| | | |
* | | | Merge pull request #21264 from owncloud/deprecated_oc_user_methodsThomas Müller2015-12-1812-70/+67
|\ \ \ \ | |_|/ / |/| | | Cleanup OC_User deprecated methods
| * | | Removed deprecated function OC_User::deleteUserRoeland Jago Douma2015-12-179-30/+42
| | | | | | | | | | | | | | | | Replaced with proper OCP calls
| * | | Removed deprecated private OC_User::createUserRoeland Jago Douma2015-12-1711-37/+22
| | | | | | | | | | | | | | | | | | | | All function calls are replaced with the recommended (which was already the body of the function).
| * | | Remove deprecated function OC_User::getManagerRoeland Jago Douma2015-12-172-4/+4
| |/ / | | | | | | | | | | | | Private deprecated function => removed Replaced all instances with suggested replacement
* | | Only perform tearDown operations on the database if we have a connection to ↵Thomas Müller2015-12-171-4/+6
| | | | | | | | | | | | it .....
* | | Use proper base classThomas Müller2015-12-173-3/+6
| | |
* | | Assert that there are no xml error leftThomas Müller2015-12-171-0/+6
|/ /
* | Merge pull request #21240 from owncloud/avatar_speedupThomas Müller2015-12-172-17/+40
|\ \ | | | | | | Avatar speedup
| * | [Avatar] Make the avatar controller use the avatar nodeRoeland Jago Douma2015-12-161-16/+26
| | |
| * | [Avatars] Add function to get the Node of the avatarRoeland Jago Douma2015-12-161-1/+14
| | | | | | | | | | | | | | | Since we usually just get the avatar and stream the content to the users there is no need to first create an image in memory.
* | | Remove deprecated OC_Helper::linkTo functionRoeland Jago Douma2015-12-171-46/+0
|/ /
* / don't allow to create a federated share if source and target server are the sameBjörn Schießle2015-12-141-0/+37
|/
* Merge pull request #20878 from ↵Thomas Müller2015-12-111-13/+0
|\ | | | | | | | | owncloud/proper-htaccess-support-in-code-signing-checker Also run .htaccess routine when installing on another system than Apache
| * Run .htaccess updates in any caseLukas Reschke2015-12-081-13/+0
| | | | | | | | This is the same what we also do in updater.php and thus this aligns the code. Makes the code paths more consistent.
* | Merge pull request #21135 from owncloud/add-polyfillThomas Müller2015-12-112-42/+3
|\ \ | | | | | | Add polyfills for PHP55, PHP56 and PHP70 functionalities
| * | Use PHP polyfillsLukas Reschke2015-12-112-42/+3
| | |
* | | Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-101-1/+3
|/ / | | | | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* | Merge pull request #21072 from owncloud/db-lock-ttlThomas Müller2015-12-101-7/+1
|\ \ | | | | | | Remove all locks after ttl from the db
| * | Remove all locks after ttl from the dbRobin Appelman2015-12-091-7/+1
| | |
* | | Merge pull request #21105 from owncloud/fix-risky-test-commentsThomas Müller2015-12-101-0/+2
|\ \ \ | | | | | | | | Add assertion to test
| * | | Add assertion to testLukas Reschke2015-12-101-0/+2
| | | | | | | | | | | | | | | | This seems to be missing on that test.
* | | | Make compatible with PHPUnit 5.1Lukas Reschke2015-12-101-0/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `addWarning` needs to be defined as well for it: ``` ➜ master git:(master) ✗ bash autotest.sh sqlite Using PHP executable /usr/local/opt/php56/bin/php Parsing all files in lib/public for the presence of @since or @deprecated on each method... Using database oc_autotest Setup environment for sqlite testing on local storage ... Installing .... ownCloud is not installed - only a limited number of commands are available Mac OS X is not supported and ownCloud will not work properly on this platform. Use it at your own risk! -> For the best results, please consider using a GNU/Linux server instead. creating sqlite db ownCloud was successfully installed Testing with sqlite ... No coverage /usr/local/bin/phpunit --configuration phpunit-autotest.xml --log-junit autotest-results-sqlite.xml PHP Notice: Constant PHPUNIT_RUN already defined in /Users/lukasreschke/Documents/Programming/master/apps/firstrunwizard/tests/bootstrap.php on line 6 PHP Stack trace: PHP 1. {main}() /usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar:0 PHP 2. PHPUnit_TextUI_Command::main() /usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar:514 PHP 3. PHPUnit_TextUI_Command->run() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/Command.php:106 PHP 4. PHPUnit_TextUI_Command->handleArguments() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/Command.php:117 PHP 5. PHPUnit_Util_Configuration->getTestSuiteConfiguration() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/Command.php:663 PHP 6. PHPUnit_Util_Configuration->getTestSuite() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/Util/Configuration.php:796 PHP 7. PHPUnit_Framework_TestSuite->addTestFile() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/Util/Configuration.php:926 PHP 8. PHPUnit_Util_Fileloader::checkAndLoad() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/Framework/TestSuite.php:335 PHP 9. PHPUnit_Util_Fileloader::load() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/Util/Fileloader.php:38 PHP 10. include_once() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/Util/Fileloader.php:56 PHP 11. loadDirectory() /Users/lukasreschke/Documents/Programming/master/tests/apps.php:42 PHP 12. require_once() /Users/lukasreschke/Documents/Programming/master/tests/apps.php:20 PHP 13. define() /Users/lukasreschke/Documents/Programming/master/apps/firstrunwizard/tests/bootstrap.php:6 PHP Fatal error: Class StartSessionListener contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PHPUnit_Framework_TestListener::addWarning) in /Users/lukasreschke/Documents/Programming/master/tests/startsessionlistener.php on line 47 PHP Stack trace: PHP 1. {main}() /usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar:0 PHP 2. PHPUnit_TextUI_Command::main() /usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar:514 PHP 3. PHPUnit_TextUI_Command->run() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/Command.php:106 PHP 4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/Command.php:155 PHP 5. PHPUnit_TextUI_TestRunner->handleConfiguration() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/TestRunner.php:153 PHP 6. require_once() phar:///usr/local/Cellar/phpunit/5.1.0/libexec/phpunit-5.1.0.phar/phpunit/TextUI/TestRunner.php:805 ```
* | | use expectedException annotation, not via method call, for consistencyArthur Schiwon2015-12-092-13/+29
| | |
* | | use getLastInsertId from query builder for convenienceArthur Schiwon2015-12-091-2/+2
| | |
* | | adjust test's fakemanager to interface changeArthur Schiwon2015-12-091-1/+1
| | |
* | | hardening, add some checks for whitespace-only stringsArthur Schiwon2015-12-091-8/+10
| | |