| c8241b3b | 06-Mar-2021 |
Damien Regad <dregad@mantisbt.org> |
Add missing `;` causing syntax error in js.php |
| a417911a | 04-Mar-2021 |
Andreas Gohr <andi@splitbrain.org> |
Run tests on PHP 8.0 now |
| 3e555995 | 24-Feb-2021 |
MaWi <drmaxxis@gmail.com> |
translation update |
| b7fa23a3 | 23-Feb-2021 |
Nikita <obraztsov568@gmail.com> |
translation update |
| 9dcfcc15 | 20-Feb-2021 |
Michael Große <mic.grosse@googlemail.com> |
test: run test in separate process in case of error
If there is an error when executing the method under test, then this test caused the downstream test \remoteapicore_test::test_getBacklinks to une
test: run test in separate process in case of error
If there is an error when executing the method under test, then this test caused the downstream test \remoteapicore_test::test_getBacklinks to unexpectedly fail. Probably, because the global plugin controller would not have been reset to its original value.
Running this test in its own process ensures that it won't affect any other test, even if it messes with the global state and doesn't clean up.
show more ...
|
| e855b7ed | 20-Feb-2021 |
Michael Große <mic.grosse@googlemail.com> |
test: fix two tests on PHP8
On PHP8 trying to access a non-existing array key leads to a warning, which we might treat as errors?
This incidentally also fixes another test downstream which broke be
test: fix two tests on PHP8
On PHP8 trying to access a non-existing array key leads to a warning, which we might treat as errors?
This incidentally also fixes another test downstream which broke because this rendering test changes the global plugin controller, but doesn't clean it up that if the test errors.
-9000 is used as the position to make it obvious that this number is meaningless for this test.
show more ...
|
| 5805f15a | 20-Feb-2021 |
Michael Große <mic.grosse@googlemail.com> |
style: fix test code style
This makes all the basic phpcs style fixes and adds visibility to the class methods. |
| f7acdb5e | 16-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
fix method handling for RPC_CALL_ADD
This event seems not to be used by any plugin, which explains why this bug hasn't surfaced yet. Access is always checked against a full method name in the form o
fix method handling for RPC_CALL_ADD
This event seems not to be used by any plugin, which explains why this bug hasn't surfaced yet. Access is always checked against a full method name in the form of plugin.<pluginname>.<method> Such a full method was not passed when using an event as described in the documentation.
show more ...
|
| 01c53a65 | 16-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
destroy the JPEGMeta object after use
On windows systems a file can not be deleted while processes still have a handle on them. JPEGMeta seems not to close its file handle correctly. Usually thats n
destroy the JPEGMeta object after use
On windows systems a file can not be deleted while processes still have a handle on them. JPEGMeta seems not to close its file handle correctly. Usually thats not a problem in short lived processes where everything is garbage collected at the end, however within a test request the object may live on a little longer causing problems.
show more ...
|
| c85f645e | 16-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
upgrade simplepie to 1.5.6 |
| 8d670f35 | 16-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
dwpage: output meta data as JSON
json shows the same nested data but is easier to process by other tools |
| 3fe01844 | 16-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
dwpage: rename gmeta into getmeta |
| d51dacaa | 13-Feb-2021 |
Dario <darioriso@virgilio.it> |
translation update |
| b1ed87eb | 07-Feb-2021 |
Anika Henke <anika@selfthinker.org> |
Make it easier to remove h1 around logo
This adds a class to the h1 around the logo and changes the CSS to reference that class instead of the h1. That way it's easier to change the h1 to a div if s
Make it easier to remove h1 around logo
This adds a class to the h1 around the logo and changes the CSS to reference that class instead of the h1. That way it's easier to change the h1 to a div if someone prefers to have not more than one h1 per page.
show more ...
|
| 66b64c2a | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Address Scrutinizer inspection failure
The variable ``$port`` seems only to be defined at a later point. As such the call to ``isset()`` seems to always evaluate to ``false``. |
| 012c7cdc | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Fix Constant DOKU_MEDIADETAIL already defined
This error only occurs when PHPUnit runs both the `testScripts` and the `test_Validity` suites [1], because all tests are running in the same PHP proces
Fix Constant DOKU_MEDIADETAIL already defined
This error only occurs when PHPUnit runs both the `testScripts` and the `test_Validity` suites [1], because all tests are running in the same PHP process.
Adding an `if(!defined` check to avoid the problem.
[1]: ./phpunit.phar --filter 'testScripts|test_Validity'
show more ...
|
| 6d3d9dba | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Improve remote_test::test_notExistingCall()
There are actually 2 distinct test cases of invalid methods:
1. Not following the definition in Api class's PHPDoc block - core methods begin by a 'do
Improve remote_test::test_notExistingCall()
There are actually 2 distinct test cases of invalid methods:
1. Not following the definition in Api class's PHPDoc block - core methods begin by a 'dokuwiki' or 'wiki' followed by a . and the method name itself. - plugin methods are formed like 'plugin.<plugin name>.<method name>' 2. Method "type" does not begin with 'dokuwiki', 'wiki' or 'plugin'
A new check was added so both are now covered.
Test was modified to make use of PHPUnit expectException() method, instead of relying on a try/catch block.
show more ...
|
| 868550d4 | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Fix incorrect assertion in input_test::test_set()
$INPUT is set to 'test2', but the $_POST checks for 'test'. |
| 63f13cad | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Fixed typos |
| 056bf31f | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Fix various errors in PHPUnit tests on PHP 8 |
| 049a05cf | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
.gitignore: exclude PHPUnit tests related files
The following files should not be checked in: - phpunit.phar: per documentation [1], it is PHP version-specific - PHPUnit's cache file - data files ge
.gitignore: exclude PHPUnit tests related files
The following files should not be checked in: - phpunit.phar: per documentation [1], it is PHP version-specific - PHPUnit's cache file - data files generated during tests execution
[1]: https://www.dokuwiki.org/devel:unittesting
show more ...
|
| fa3a5b86 | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Reorganize .gitignore
- Add comment to regroup editor/IDE and temp files - Move config-related excludes together with other DokuWiki ones |
| a5bc54e3 | 04-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
fix version comparison in phpunit downloader |
| 57538c4b | 04-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
fix deprecated phpunit assertions |
| f1d70d12 | 04-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
remove old DokuCLI class
This has been deprecated in 2017. Removing it instead of fixing tests and PHP8 compatibility |