diff options
Diffstat (limited to 'tests/plugins/test/test.php')
-rw-r--r-- | tests/plugins/test/test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index 2aaf5122..03be4f4e 100644 --- a/tests/plugins/test/test.php +++ b/tests/plugins/test/test.php | |||
@@ -13,9 +13,17 @@ function hook_test_random($data) | |||
13 | $data[1] = 'page test'; | 13 | $data[1] = 'page test'; |
14 | } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { | 14 | } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { |
15 | $data[1] = 'loggedin'; | 15 | $data[1] = 'loggedin'; |
16 | } elseif (array_key_exists('_LOGGEDIN_', $data)) { | ||
17 | $data[1] = 'loggedin'; | ||
18 | $data[2] = $data['_LOGGEDIN_']; | ||
16 | } else { | 19 | } else { |
17 | $data[1] = $data[0]; | 20 | $data[1] = $data[0]; |
18 | } | 21 | } |
19 | 22 | ||
20 | return $data; | 23 | return $data; |
21 | } | 24 | } |
25 | |||
26 | function hook_test_error() | ||
27 | { | ||
28 | new Unknown(); | ||
29 | } | ||