1313use Keboola \NotificationClient \Requests \PostSubscription \EmailRecipient ;
1414use Keboola \NotificationClient \Requests \PostSubscription \Filter ;
1515use Keboola \NotificationClient \Requests \Subscription ;
16+ use Keboola \NotificationClient \Responses \Subscription as ResponseSubscription ;
1617use Keboola \NotificationClient \StorageApiIndexClient ;
1718use Keboola \NotificationClient \SubscriptionClient ;
1819use PHPUnit \Framework \TestCase ;
@@ -190,7 +191,7 @@ public function testListSubscriptionsHeaders(): void
190191
191192 self ::assertCount (2 , $ result );
192193 self ::assertContainsOnlyInstancesOf (
193- \ Keboola \ NotificationClient \ Responses \Subscription ::class,
194+ ResponseSubscription ::class,
194195 $ result ,
195196 );
196197 self ::assertSame ('sub-1 ' , $ result [0 ]->getId ());
@@ -219,11 +220,11 @@ public function testListAndDeleteSubscriptionLifecycle(): void
219220 // list — must contain the new subscription
220221 $ beforeDelete = $ client ->listSubscriptions ();
221222 self ::assertContainsOnlyInstancesOf (
222- \ Keboola \ NotificationClient \ Responses \Subscription ::class,
223+ ResponseSubscription ::class,
223224 $ beforeDelete ,
224225 );
225226 $ ids = array_map (
226- fn (\ Keboola \ NotificationClient \ Responses \ Subscription $ s ): string => $ s ->getId (),
227+ fn (ResponseSubscription $ s ): string => $ s ->getId (),
227228 $ beforeDelete ,
228229 );
229230 self ::assertContains ($ created ->getId (), $ ids );
@@ -234,7 +235,7 @@ public function testListAndDeleteSubscriptionLifecycle(): void
234235 // list — must no longer contain it
235236 $ afterDelete = $ client ->listSubscriptions ();
236237 $ idsAfter = array_map (
237- fn (\ Keboola \ NotificationClient \ Responses \ Subscription $ s ): string => $ s ->getId (),
238+ fn (ResponseSubscription $ s ): string => $ s ->getId (),
238239 $ afterDelete ,
239240 );
240241 self ::assertNotContains ($ created ->getId (), $ idsAfter );
0 commit comments