From 8c7dda61a6fc28b6f677a41fc8ceb5bfdcd55f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Barbeito=20Garc=C3=ADa?= Date: Sun, 8 Sep 2024 11:31:00 +0200 Subject: [PATCH] Add unit test for Notification Resolver --- .../Notification/NotificationResolverTest.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/Unit/Resolver/Notification/NotificationResolverTest.php diff --git a/tests/Unit/Resolver/Notification/NotificationResolverTest.php b/tests/Unit/Resolver/Notification/NotificationResolverTest.php new file mode 100644 index 00000000..e8bc42e1 --- /dev/null +++ b/tests/Unit/Resolver/Notification/NotificationResolverTest.php @@ -0,0 +1,36 @@ +createMock(DenormalizerInterface::class), + $this->createMock(ValidatorInterface::class), + new NullLogger(), + ); + + $this->expectException(NotificationItemsEmptyException::class); + + $resolver->resolve('dummy-payment-code', RequestMother::createDummy()); + } +}