From 861901c40f3197ef18de4d17edcf7d63a52b4616 Mon Sep 17 00:00:00 2001 From: jkindly Date: Wed, 25 Sep 2024 09:13:49 +0200 Subject: [PATCH] OP-547: Spec --- spec/EventSubscriber/UserRegistrationAgreementSubscriberSpec.php | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/EventSubscriber/UserRegistrationAgreementSubscriberSpec.php b/spec/EventSubscriber/UserRegistrationAgreementSubscriberSpec.php index d11e384..f1704a9 100644 --- a/spec/EventSubscriber/UserRegistrationAgreementSubscriberSpec.php +++ b/spec/EventSubscriber/UserRegistrationAgreementSubscriberSpec.php @@ -67,6 +67,7 @@ function it_process_successfully( $resourceControllerEvent->getSubject()->willReturn($customer); $customer->getUser()->willReturn($shopUser); $customer->getAgreements()->willReturn($userAgreements); + $userAgreements->isEmpty()->willReturn(false); $userAgreements->first()->willReturn($agreement); $agreement->getContexts()->willReturn(['registration_form']);