Commit 5f6b7f0
committed
test: add Options classes tests and fix Arr::set return value bug
Add 27 wpunit tests covering get/set/delete/all/reset, defaults,
environment isolation, container singletons, and Plugin::option().
Fix Options::set() to capture the return value of Arr::set() which
returns a new array rather than mutating by reference.1 parent 0ad4b27 commit 5f6b7f0
2 files changed
Lines changed: 393 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 60 | + | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
0 commit comments