summaryrefslogtreecommitdiffstats
path: root/tests/lib/InstallerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Allow installing/updating of apps againRoeland Jago Douma2021-01-121-5/+5
| | | | | | The Guzzle API changed. We shall now use sink Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-5/+5
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* disable timeout on app install via cliArthur Schiwon2020-02-121-4/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Adjust unit test for #19017Joas Schilling2020-01-211-12/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-28/+28
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update CRL to contain revoked files_external_dropbox, passman & paybackMorris Jobke2019-02-141-40/+40
| | | | | | | * see https://github.com/nextcloud/app-certificate-requests/pull/221 * see https://github.com/nextcloud/app-certificate-requests/pull/219#issuecomment-463577509 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use isInstalled of AppManger instead of reimplement itMorris Jobke2018-03-211-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use cached app listMorris Jobke2017-12-141-0/+1
| | | | | | Followup to #7264 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make isUpdateAvailable non-staticMorris Jobke2017-11-251-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get the Installer via DIMorris Jobke2017-11-251-18/+26
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix the installer testsJoas Schilling2017-07-051-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust testsLukas Reschke2017-04-261-4/+13
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Don't use cached informations for app versionLukas Reschke2016-12-091-0/+4
| | | | | | | | | | | | | When installing an app from the appstore the `\OC_App::getAppVersion` code is triggered twice: - First when the downloader tries to compare the current version to the new version on the appstore to check if there is a newer version. This protects against downgrade attacks and is implemented in `\OC\Installer::downloadApp`. - Second, when the app is actually installed the current version is written to the database. (`\OC\Installer::installApp`) This fails however when the version is actually cached. Because in step 1 the cached version will be set to "0" and then be reused in the second step. While this is probably not the cleanest version I assume this is an approach that is least invasive. Feedback and suggestions welcome :) Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Prevent downgrade attacks for appsLukas Reschke2016-11-111-2/+89
| | | | | | | | We should verify the app versions when installing a new update, otherwise this could result in downgrade attacks when an attacker just copies the old signature. Plus it prevents the case that in case of a bug in the appstore actually an older version gets installed. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add tests for installer methodLukas Reschke2016-10-311-0/+514
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add update supportLukas Reschke2016-10-311-63/+28
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix testsLukas Reschke2016-10-311-2/+4
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* OC_Installer -> \OC\InstallerThomas Müller2016-05-021-0/+99