Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0e9bb07

Browse files
committedOct 6, 2021
DEBUG dump app sticky
1 parent 5c9d10e commit 0e9bb07

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
@@ -149,8 +149,10 @@ protected function getClient(): Client
149149
$app->run();
150150
}
151151

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

0 commit comments

Comments
 (0)
Please sign in to comment.