@@ -87,8 +87,8 @@ function it_should_subscribe_to_channel_update(RequestGenerator $requestGenerato
87
87
88
88
function it_should_subscribe_to_channel_follow (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
89
89
{
90
- $ this ->createEventSubSubscription ('channel.follow ' , '1 ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
91
- $ this ->subscribeToChannelFollow ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' )->shouldBe ($ response );
90
+ $ this ->createEventSubSubscription ('channel.follow ' , '2 ' , ['broadcaster_user_id ' => '12345 ' , ' moderator_user_id ' => ' 54321 ' ], $ requestGenerator )->willReturn ($ request );
91
+ $ this ->subscribeToChannelFollow ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' , ' 54321 ' )->shouldBe ($ response );
92
92
}
93
93
94
94
function it_should_subscribe_to_channel_subscribe (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
@@ -309,37 +309,49 @@ function it_should_subscribe_to_drop_entitelement_grant_with_opts(RequestGenerat
309
309
310
310
function it_should_subscribe_to_channel_charity_campaign_start (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
311
311
{
312
- $ this ->createEventSubSubscription ('channel.charity_campaign.start ' , 'beta ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
312
+ $ this ->createEventSubSubscription ('channel.charity_campaign.start ' , '1 ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
313
313
$ this ->subscribeToChannelCharityCampaignStart ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' )->shouldBe ($ response );
314
314
}
315
315
316
316
function it_should_subscribe_to_channel_charity_campaign_progress (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
317
317
{
318
- $ this ->createEventSubSubscription ('channel.charity_campaign.progress ' , 'beta ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
318
+ $ this ->createEventSubSubscription ('channel.charity_campaign.progress ' , '1 ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
319
319
$ this ->subscribeToChannelCharityCampaignProgress ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' )->shouldBe ($ response );
320
320
}
321
321
322
322
function it_should_subscribe_to_channel_charity_campaign_stop (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
323
323
{
324
- $ this ->createEventSubSubscription ('channel.charity_campaign.stop ' , 'beta ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
324
+ $ this ->createEventSubSubscription ('channel.charity_campaign.stop ' , '1 ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
325
325
$ this ->subscribeToChannelCharityCampaignStop ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' )->shouldBe ($ response );
326
326
}
327
327
328
328
function it_should_subscribe_to_channel_charity_campaign_donate (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
329
329
{
330
- $ this ->createEventSubSubscription ('channel.charity_campaign.donate ' , 'beta ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
330
+ $ this ->createEventSubSubscription ('channel.charity_campaign.donate ' , '1 ' , ['broadcaster_user_id ' => '12345 ' ], $ requestGenerator )->willReturn ($ request );
331
331
$ this ->subscribeToChannelCharityCampaignDonate ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' )->shouldBe ($ response );
332
332
}
333
333
334
334
function it_should_subscribe_to_channel_shield_mode_begin (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
335
335
{
336
- $ this ->createEventSubSubscription ('channel.shield_mode.begin ' , 'beta ' , ['broadcaster_user_id ' => '12345 ' , 'moderator_user_id ' => '54321 ' ], $ requestGenerator )->willReturn ($ request );
336
+ $ this ->createEventSubSubscription ('channel.shield_mode.begin ' , '1 ' , ['broadcaster_user_id ' => '12345 ' , 'moderator_user_id ' => '54321 ' ], $ requestGenerator )->willReturn ($ request );
337
337
$ this ->subscribeToChannelShieldModeBegin ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' , '54321 ' )->shouldBe ($ response );
338
338
}
339
339
340
340
function it_should_subscribe_to_channel_shield_mode_end (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
341
341
{
342
- $ this ->createEventSubSubscription ('channel.shield_mode.end ' , 'beta ' , ['broadcaster_user_id ' => '12345 ' , 'moderator_user_id ' => '54321 ' ], $ requestGenerator )->willReturn ($ request );
342
+ $ this ->createEventSubSubscription ('channel.shield_mode.end ' , '1 ' , ['broadcaster_user_id ' => '12345 ' , 'moderator_user_id ' => '54321 ' ], $ requestGenerator )->willReturn ($ request );
343
343
$ this ->subscribeToChannelShieldModeEnd ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' , '54321 ' )->shouldBe ($ response );
344
344
}
345
+
346
+ function it_should_subscribe_to_channel_shoutout_create (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
347
+ {
348
+ $ this ->createEventSubSubscription ('channel.shoutout.create ' , '1 ' , ['broadcaster_user_id ' => '12345 ' , 'moderator_user_id ' => '54321 ' ], $ requestGenerator )->willReturn ($ request );
349
+ $ this ->subscribeToChannelShoutoutCreate ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' , '54321 ' )->shouldBe ($ response );
350
+ }
351
+
352
+ function it_should_subscribe_to_channel_shoutout_receive (RequestGenerator $ requestGenerator , Request $ request , Response $ response )
353
+ {
354
+ $ this ->createEventSubSubscription ('channel.shoutout.receive ' , '1 ' , ['broadcaster_user_id ' => '12345 ' , 'moderator_user_id ' => '54321 ' ], $ requestGenerator )->willReturn ($ request );
355
+ $ this ->subscribeToChannelShoutoutReceive ($ this ->bearer , $ this ->secret , $ this ->callback , '12345 ' , '54321 ' )->shouldBe ($ response );
356
+ }
345
357
}
0 commit comments