toHaveKey($expected); expect($hooks[$expected]['name'])->toBe('monitor'); } expect($GLOBALS['__test_registered_realms'])->toHaveCount(1); expect($GLOBALS['__test_registered_realms'][0]['file'])->toBe('monitor.php'); expect($GLOBALS['__test_config_options']['monitor_view'])->toBe('default'); expect($GLOBALS['__test_config_options']['monitor_trim'])->toBe('4000'); $sql = implode("\n", array_column($GLOBALS['__test_db_calls'], 'sql')); expect($sql)->toContain('plugin_monitor_notify_history'); });