| #
b12755b0 |
| 07-Jun-2026 |
Andreas Gohr <andi@splitbrain.org> |
Make common_pageinfo tests independent of execution order
The pageinfo() tests relied on running in a fixed order: test_editor_and_externaledits mutated wiki:syntax (changelog entry + file mtime), a
Make common_pageinfo tests independent of execution order
The pageinfo() tests relied on running in a fixed order: test_editor_and_externaledits mutated wiki:syntax (changelog entry + file mtime), and the other tests relied on that page being pristine. Move the mutating test to its own page (wiki:dokuwiki) so the shared per-class data dir stays clean, prime the last_change metadata within each test instead of across tests, and fix the affected expectations. The suite now passes in isolation and in random/reverse order.
While here, modernize the file: - capture the pageinfo() result once instead of calling it twice - add public/protected visibility markers to all methods - convert array() to the short [] syntax - replace the deprecated addLogEntry() with the PageFile API it wraps
show more ...
|
| #
357931f3 |
| 28-Dec-2021 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Merge branch 'master' into revisionHandle3
|
| #
1ef67323 |
| 17-Dec-2021 |
Andreas Gohr <andi@splitbrain.org> |
fix test for draft file
|
| #
7866d571 |
| 24-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
UnitTest of pageinfo(), saveWikiText()
ChangeLog creates early .change file, p_get_metadata() will get full "meta_last_change" entry. The current key in the revinfo need to be excluded prior to p_s
UnitTest of pageinfo(), saveWikiText()
ChangeLog creates early .change file, p_get_metadata() will get full "meta_last_change" entry. The current key in the revinfo need to be excluded prior to p_set_metadata() call.
show more ...
|
| #
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
|
| #
b6cc2b69 |
| 19-Mar-2016 |
Gerrit Uitslag <klapinklapin@gmail.com> |
let path to revision file in tests depend on compression setting
|
| #
5d873dd4 |
| 23-Feb-2014 |
Andreas Gohr <andi@splitbrain.org> |
fixed test cases for last commit
|
| #
ccfec560 |
| 07-Dec-2013 |
Anika Henke <anika@selfthinker.org> |
crlf 2 lf whitespace fixes
|
| #
af2cfd7b |
| 21-Feb-2013 |
Christopher Smith <chris@jalakai.co.uk> |
add unit test for pageinfo()
|