22
33namespace Flagship \Hit ;
44
5+ use Flagship \BaseTestCase ;
56use Flagship \Config \DecisionApiConfig ;
67use Flagship \Enum \FlagshipConstant ;
7- use PHPUnit \Framework \TestCase ;
88
9- class HitBatchTest extends TestCase
9+ class HitBatchTest extends BaseTestCase
1010{
1111 public function testToApiKeys ()
1212 {
13+ $ this ->mockRoundFunction ();
1314 $ visitorId = "visitorId " ;
1415 $ config = new DecisionApiConfig ();
1516
@@ -20,19 +21,19 @@ public function testToApiKeys()
2021 $ screen ->setConfig ($ config )->setVisitorId ($ visitorId );
2122
2223 $ hits = [
23- $ page ,
24- $ screen ,
25- ];
24+ $ page ,
25+ $ screen ,
26+ ];
2627
2728 $ batch = new HitBatch ($ config , [$ page , $ screen ]);
2829
2930 $ data = [
30- FlagshipConstant::DS_API_ITEM => FlagshipConstant::SDK_APP ,
31- FlagshipConstant::CUSTOMER_ENV_ID_API_ITEM => $ config ->getEnvId (),
32- FlagshipConstant::T_API_ITEM => "BATCH " ,
33- FlagshipConstant::QT_API_ITEM => 0.0 ,
34- FlagshipConstant::H_API_ITEM => [],
35- ];
31+ FlagshipConstant::DS_API_ITEM => FlagshipConstant::SDK_APP ,
32+ FlagshipConstant::CUSTOMER_ENV_ID_API_ITEM => $ config ->getEnvId (),
33+ FlagshipConstant::T_API_ITEM => "BATCH " ,
34+ FlagshipConstant::QT_API_ITEM => 0.0 ,
35+ FlagshipConstant::H_API_ITEM => [],
36+ ];
3637
3738 foreach ($ hits as $ hit ) {
3839 $ hitApiKey = $ hit ->toApiKeys ();
0 commit comments