[Vortex] FCM BatchResponse

Review Request #481 — Created Jan. 3, 2017 and submitted

p.valk
Lunr
vortex-2
480
482
ac5233d...
lunr

added BatchResponse based on GCM

unittests.

  • 0
  • 0
  • 1
  • 2
  • 3
Description From Last Updated
smillernl
  1. 
      
  2. src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revision 1)
     
     
     
     
     
     
     
     
     

    the whole 200 range is a correct response right? Or only 200 for FCM?

    1. this is the same code as gcm, from what i know i know this didnt change.

  3. 
      
p.valk
pprkut
  1. 
      
  2. src/Lunr/Vortex/FCM/FCMBatchResponse.php (Diff revision 1)
     
     
     
     
     

    why is this not extending the GCM batch response class?

    1. wasnt working before, its working now. propably it had to do with not having a constructor.

  3. 
      
p.valk
pprkut
  1. Ship It!
  2. 
      
pprkut
  1. Missing BaseTest test class

    1. GCM also doesnt have a GCNBatchResponseBaseTest.
      does FCM need one anyway?

    2. Yes, because otherwise it would have no tests

  2. 
      
p.valk
p.valk
p.valk
  1. 
      
  2. my fault, fixing it now.

  3. 
      
p.valk
pprkut
  1. 
      
  2. src/Lunr/Vortex/FCM/Tests/FCMBatchResponseBasePushErrorTest.php (Diff revision 5)
     
     
     
     
     
     
     
     

    Sorry, that's too much. That's not what I meant.
    I meant the BaseTest class only, not making up some test classes that start with "Base".

    The reason is that without tests the constructor/destructor are not covered. So we need some tests for the new class, and the easiest ones as well as the ones that make most sense are the ones that verify the properties are set correctly. Which is done in the BaseTest class.

    1. ok, i copied this from GCM and moddified to test for FCM.
      its funny that GCM has no base test class for this too.
      i'l remove these and make a baseclass for FCM myself then.

  3. 
      
p.valk
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...