From 633ff98bc2dfced1979d604381376f3d2ca3c6b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 5 Oct 2021 23:06:08 +0200 Subject: [PATCH] DEBUG dump app sticky --- tests/DemosTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/DemosTest.php b/tests/DemosTest.php index 0e40edf606..44e7de20ab 100644 --- a/tests/DemosTest.php +++ b/tests/DemosTest.php @@ -149,8 +149,10 @@ protected function getClient(): Client $app->run(); } - if (\Closure::bind(fn () => $app->sticky_get_arguments, null, App::class)() !== ['__atk_json' => false, '__atk_tab' => false]) { - throw new \Atk4\Ui\Exception('Global GET sticky must never be set by any component'); + // assert no test sets app/global GET sticky + $appSticky = \Closure::bind(fn () => $app->sticky_get_arguments, null, App::class)(); + if ($appSticky !== ['__atk_json' => false, '__atk_tab' => false]) { + throw new \Atk4\Ui\Exception('Global GET sticky must never be set by any component' . print_r($appSticky, true)); } } catch (\Throwable $e) { // session_start() or ini_set() functions can be used only with native HTTP tests