more tests

This commit is contained in:
Shish
2024-02-09 12:43:53 +00:00
parent 2e536e980c
commit 43e8ff3e3e
9 changed files with 299 additions and 189 deletions

View File

@ -319,6 +319,13 @@ class Setup extends Extension
{
global $config, $page, $user;
if ($event->page_matches("nicedebug")) {
$page->set_mode(PageMode::DATA);
$page->set_data(json_encode_ex([
"args" => $event->args,
]));
}
if ($event->page_matches("nicetest")) {
$page->set_mode(PageMode::DATA);
$page->set_data("ok");