@@ -185,7 +185,7 @@ public function testGetPushPayloadsNoHit(): void
185
185
$ cacheItemProphecy ->isHit ()->willReturn (false );
186
186
$ this ->subscriptionsCacheProphecy ->getItem ('_dummies_2 ' )->willReturn ($ cacheItemProphecy ->reveal ());
187
187
188
- $ this ->assertEquals ([], $ this ->subscriptionManager ->getPushPayloads ($ object ));
188
+ $ this ->assertEquals ([], $ this ->subscriptionManager ->getPushPayloads ($ object, ' update ' ));
189
189
}
190
190
191
191
public function testGetPushPayloadsHit (): void
@@ -208,7 +208,7 @@ public function testGetPushPayloadsHit(): void
208
208
209
209
$ this ->normalizeProcessor ->process (
210
210
$ object ,
211
- (new Subscription ())->withName ('update_subscription ' )->withShortName ('Dummy ' ),
211
+ (new Subscription ())->withName ('mercure_subscription ' )->withShortName ('Dummy ' ),
212
212
[],
213
213
['fields ' => ['fieldsFoo ' ], 'is_collection ' => false , 'is_mutation ' => false , 'is_subscription ' => true ]
214
214
)->willReturn (
@@ -217,13 +217,13 @@ public function testGetPushPayloadsHit(): void
217
217
218
218
$ this ->normalizeProcessor ->process (
219
219
$ object ,
220
- (new Subscription ())->withName ('update_subscription ' )->withShortName ('Dummy ' ),
220
+ (new Subscription ())->withName ('mercure_subscription ' )->withShortName ('Dummy ' ),
221
221
[],
222
222
['fields ' => ['fieldsBar ' ], 'is_collection ' => false , 'is_mutation ' => false , 'is_subscription ' => true ]
223
223
)->willReturn (
224
224
['resultBar ' , 'clientSubscriptionId ' => 'client-subscription-id ' ]
225
225
);
226
226
227
- $ this ->assertEquals ([['subscriptionIdFoo ' , ['newResultFoo ' ]]], $ this ->subscriptionManager ->getPushPayloads ($ object ));
227
+ $ this ->assertEquals ([['subscriptionIdFoo ' , ['newResultFoo ' ]]], $ this ->subscriptionManager ->getPushPayloads ($ object, ' update ' ));
228
228
}
229
229
}
0 commit comments