aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ApplicationUtilsTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Run Unit Tests against PHP 7.4ArthurHoaro2020-01-171-5/+5
| | | | | | | | Bump PHPUnit version and fix unit test - Globals are handled differently and are persistent through tests - Tests without assertions are marked as risky: some of them are just meant to check that no error is raised.
* namespacing: \Shaarli\ApplicationUtilsVirtualTam2019-01-121-23/+4
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to tests/VirtualTam2018-12-021-3/+3
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Fix version check branch for UTArthurHoaro2017-03-221-1/+1
|
* Set Shaarli's version only in shaarli_version.php fileArthurHoaro2017-03-211-7/+29
|
* Use 'dev' version on the master branchArthurHoaro2017-03-121-0/+11
| | | | Allowed check branches are now `latest` and `stable`.
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-041-1/+2
| | | | | | | | | | | Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Updater: keep custom theme preference with the new theme settingArthurHoaro2017-01-051-44/+0
|
* Minor improvements regarding #705 (coding style, unit tests, etc.)ArthurHoaro2017-01-051-0/+44
|
* Change templates set through administration UIKnah Tsaeb2017-01-051-0/+3
|
* Hide expected 'error_log' while running TU (clean PHPUnit log)ArthurHoaro2016-07-231-0/+3
|
* Rename configuration key for better sectionsArthurHoaro2016-06-111-20/+20
|
* ConfigManager no longer uses singleton patternArthurHoaro2016-06-111-4/+4
|
* Rename configuration keys and fix GLOBALS in templatesArthurHoaro2016-06-111-20/+20
|
* Replace $GLOBALS configuration with the configuration manager in the whole ↵ArthurHoaro2016-06-111-27/+27
| | | | code base
* application: default to the "stable" branch for update checksVirtualTam2015-11-271-2/+12
| | | | | | | Relates to #372 Relates to #390 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* application: refactor version checks, move to ApplicationUtilsVirtualTam2015-11-261-0/+218
| | | | | | | | | | | | | | | Relates to #372 Modifications: - move checkUpdate() to ApplicationUtils - reduce file I/O operations during version checks - apply coding conventions - add test coverage Tools: - create a sandbox directory for tests Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* application: move checkPHPVersion from Utils to ApplicationUtilsVirtualTam2015-11-241-0/+31
| | | | | | Relates to #372 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* install: check file/directory permissions for Shaarli resourcesVirtualTam2015-11-241-0/+69
Relates to #40 Relates to #372 Additions: - FileUtils: IOException - ApplicationUtils: - check if Shaarli resources are accessible with sufficient permissions - basic test coverage - index.php: - check access permissions and redirect to an error page if needed: - before running the first installation Modifications: - LinkDB: - factorize datastore write code - check if the datastore (exists AND is writeable) OR (doesn't exist AND its parent dir is writable) - raise an IOException if needed Signed-off-by: VirtualTam <virtualtam@flibidi.net>