Skip to content

Commit 1597000

Browse files
committed
dump app sticky
1 parent 5322453 commit 1597000

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/DemosTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ protected function getClient(): Client
150150
$app->run();
151151
}
152152

153-
if (\Closure::bind(fn () => $app->sticky_get_arguments, null, App::class)() !== ['__atk_json' => false, '__atk_tab' => false]) {
154-
throw new \Atk4\Ui\Exception('Global GET sticky must never be set by any component');
153+
// assert no test sets app/global GET sticky
154+
$appSticky = \Closure::bind(fn () => $app->sticky_get_arguments, null, App::class)();
155+
if ($appSticky !== ['__atk_json' => false, '__atk_tab' => false]) {
156+
throw new \Atk4\Ui\Exception('Global GET sticky must never be set by any component' . print_r($appSticky, true));
155157
}
156158
} catch (\Throwable $e) {
157159
// session_start() or ini_set() functions can be used only with native HTTP tests

0 commit comments

Comments
 (0)