History log of /dokuwiki/lib/plugins/config/_test/WriterTest.php (Results 1 – 5 of 5)
Revision Date Author Comments
# fe97773c 25-Nov-2024 Andreas Gohr <andi@splitbrain.org>

fix expected exception message in config plugin test


# 9ad2b913 25-Nov-2024 Andreas Gohr <andi@splitbrain.org>

replace deprecated phpunit assertions


# 0772dde2 26-Oct-2022 Andreas Gohr <andi@splitbrain.org>

Fix handling of unknown array settings

When a plugin used an array setting and was then installed, the old
configuration can remain in local.php. It is handled by the
SettingUndefined class. However

Fix handling of unknown array settings

When a plugin used an array setting and was then installed, the old
configuration can remain in local.php. It is handled by the
SettingUndefined class. However this class used the base out() mechanism
which didn't know about arrays. The result was a fatal error resulting
in a completely empty config file.

This moves the error handling from the SettingArray class to the base
class which fixes the original problem.

It also adds a check if the Writer is about to write a completely empty
config file and refuses to do so, throwing an Exception.

Probably related to #3777

show more ...


# 49bcbaee 15-Oct-2019 Andreas Gohr <gohr@cosmocode.de>

Do config backups with .php extension fixes #2446


# 98a151ba 20-May-2018 Andreas Gohr <andi@splitbrain.org>

Some first Setting class tests