Searched hist:c651c34be7c4cf4969c59d38345113e03e76a1ad (Results 1 – 1 of 1) sorted by relevance
| /dokuwiki/_test/tests/Search/ |
| H A D | BacklinksTest.php | c651c34be7c4cf4969c59d38345113e03e76a1ad Wed Jun 17 13:16:47 UTC 2026 Andreas Gohr <gohr@cosmocode.de> BacklinksTest: give testLinksInDeletedPages its own page
testLinksInDeletedPages reused test:internallinks, the same page testInternallink already saves and indexes. Since the data dir is shared across the class, when the re-save and the earlier index land in the same second, needsIndexing() now (correctly) reports the page as up to date and addPage() skips reindexing, leaving stale link data. backlinks('test:internallink') then returned an empty array.
Use a dedicated page (test:deletedlinks) with its own link targets so the test no longer collides with testInternallink's index state.
|