diff --git a/payment_paypal/tests/controllers_test.py b/payment_paypal/tests/controllers_test.py
index <HASH>..<HASH> 100644
--- a/payment_paypal/tests/controllers_test.py
+++ b/payment_paypal/tests/controllers_test.py
@@ -32,6 +32,8 @@ from indico_payment_paypal.plugin import PaypalPaymentPlugin
 def test_ipn_verify_business(business, expected, dummy_event):
     rh = RHPaypalIPN()
     rh.event = dummy_event
+    rh.registration = MagicMock()
+    rh.registration.registration_form.event = dummy_event
     PaypalPaymentPlugin.event_settings.set(dummy_event, 'business', 'test')
     request.form = {'business': business}
     with PaypalPaymentPlugin.instance.plugin_context():
Payment/PayPal: Fix tests