| 4756d8a3 | 01-Apr-2021 |
Gerrit Uitslag <klapinklapin@gmail.com> |
add unit test for namespace exclusion in ft_pageLookup() |
| 4f582736 | 20-Mar-2021 |
Guillaume Turri <guillaume.turri@gmail.com> |
Add tests on sectionID and fixes #3436
This commit fixes a bug on sectionID which could lead to having duplicated id.
Note that this commit changes the API a bit $check used to be a key-value array
Add tests on sectionID and fixes #3436
This commit fixes a bug on sectionID which could lead to having duplicated id.
Note that this commit changes the API a bit $check used to be a key-value array (with key=the origin id, and value=the number of time this id has been generated) and is now just an array of string. That's because the previous structure couldn't work.
As far as Dokuwiki sources are concerned, this change should have no impact because: - most call to sectionID are done with $check=false (and the behavior in this case isn't changed - only Doku_Renderer->_headerToLink passes an actual array to this method. But this array is initialized empty, it is only filled and read by sectionID itself. (this Doku_Renderer->headers array is protected but the classes which extends it aren't referring this array).
It could still break usages of pluging that would call sectionID and rely on the format of this array. But even if this commits kept $check as an array<string, bool> (for instance setting the values to 1) the semantic wouldn't be the same.
To put it in a nutshell: - this change of API has 0 impact on the core of Dokuwiki - there is no evidence that it would impact other code - there doesn't seem to be a clean way to avoid this change
This commit fixes #3436
show more ...
|
| 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. |
| 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'. |
| 056bf31f | 06-Feb-2021 |
Damien Regad <dregad@mantisbt.org> |
Fix various errors in PHPUnit tests on PHP 8 |
| 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 |
| 3366d071 | 04-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
fix PHP8 errors in tests
These were problems within the tests itself. There are many more problems in the actual code. |
| 1c33cec3 | 04-Feb-2021 |
Andreas Gohr <andi@splitbrain.org> |
add needed type hints for phpunit8
This will break a lot of plugin tests, but can't be avoided |
| 8dbb068e | 12-Jan-2021 |
Andreas Gohr <andi@splitbrain.org> |
test translations for correctness
This inspired by https://www.dokuwiki.org/teams:i18n:translation-check by @schplurtz Instead of relying on an external script that only checks after a translation w
test translations for correctness
This inspired by https://www.dokuwiki.org/teams:i18n:translation-check by @schplurtz Instead of relying on an external script that only checks after a translation was merged, this test can be run in out CI environment and help us to avaoid merging faulty translations.
show more ...
|
| 17409362 | 06-Jan-2021 |
Andreas Gohr <andi@splitbrain.org> |
simplified the media_searchlist tests |
| fe2e97f6 | 03-Dec-2020 |
Andreas Gohr <andi@splitbrain.org> |
PHP 8: rename match() to apply() in Lexer #3298 |
| 66b108d6 | 28-Oct-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Fix groups match in auth_ismanager and auth_isadmin
Even if a user was passed to the check but no groups, current user's groups were used for the match |
| 3ff73c3c | 27-Oct-2020 |
AdaKaleh <31895292+adakaleh@users.noreply.github.com> |
Add IPv6 unit tests |
| bfcf8009 | 30-Sep-2020 |
Andreas Gohr <andi@splitbrain.org> |
refactor page and media resolving, introduce ~ shortcut
This moves the resolve_id() type of functions into their own class hierarchy.
A new shortcut to be used in links is introduced. The tilde ~ c
refactor page and media resolving, introduce ~ shortcut
This moves the resolve_id() type of functions into their own class hierarchy.
A new shortcut to be used in links is introduced. The tilde ~ can be used to reference the current page as a namespace. This is useful to dynamically create a new namespace from an existing page, effectively making that page the start page. It allows for a more dynamic growth of the wiki and makes use of the rarer used "startpage named like the namespace" method for start pages.
The existing code has not been modified, yet and continues to use the old, now deprecated methods. Some tests are still failing - before they are fixed, the expected behaviour needs to be discussed.
show more ...
|
| a32da6dd | 25-Sep-2020 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
change Index objects to non-singleton
Indexer, FulltextIndex, MetadataIndex uses common directory to store *.idx files, but this does not mean they should be singleton objects to avoid lock confrict
change Index objects to non-singleton
Indexer, FulltextIndex, MetadataIndex uses common directory to store *.idx files, but this does not mean they should be singleton objects to avoid lock confrictions.
show more ...
|
| 242e6931 | 20-Aug-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Thorough tests for EO, DE, PT and ES
Correction for German collation; examples for German and Spanish; much better comments |
| d0fecb18 | 17-Aug-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Tests for Portuguese and Spanish
Collations for Portuguese and Spanish; examples for Portuguese; better comments |
| 0489c64b | 16-Aug-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Changes according to revisions in https://github.com/moisesbr-dw/dokuwiki/pull/2
Many minor details and use of Sort::xyz() instead of intl_xyz() in files outside the "inc" folder. |
| 24486f8c | 12-Aug-2020 |
Andreas Gohr <andi@splitbrain.org> |
fixed tests for cleanID and romanization for Greeklish |
| f9aa34a3 | 11-Aug-2020 |
Andreas Gohr <andi@splitbrain.org> |
test the collator fallback always
Now the use of the intl extension can be turned off, allowing for easy testing of the fallback. The test now inherits from the collator test so we avoid too much du
test the collator fallback always
Now the use of the intl extension can be turned off, allowing for easy testing of the fallback. The test now inherits from the collator test so we avoid too much duplicate code
show more ...
|
| 5d9cb4e1 | 11-Aug-2020 |
Andreas Gohr <andi@splitbrain.org> |
cleanup for collator tests
The proper use of data providers now make it much easier to add addtional languages to the test |