Home
last modified time | relevance | path

Searched hist:b12755b032df1a0019d53c62e9c655ea852928f3 (Results 1 – 1 of 1) sorted by relevance

/dokuwiki/_test/tests/inc/
H A Dcommon_pageinfo.test.phpb12755b032df1a0019d53c62e9c655ea852928f3 Sun Jun 07 13:14:46 UTC 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), 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