@@ -146,6 +146,7 @@ public function testInit()
146146 '177776 ' => $ this ->config ->getExperimentFromId ('177776 ' ),
147147 '177774 ' => $ this ->config ->getExperimentFromId ('177774 ' ),
148148 '177779 ' => $ this ->config ->getExperimentFromId ('177779 ' ),
149+ '7716830083 ' => $ this ->config ->getExperimentFromId ('7716830083 ' ),
149150 ],
150151 $ experimentIdMap ->getValue ($ this ->config )
151152 );
@@ -533,7 +534,7 @@ public function testGetEventValidKey()
533534 $ event = $ this ->config ->getEvent ('purchase ' );
534535 $ this ->assertEquals ('purchase ' , $ event ->getKey ());
535536 $ this ->assertEquals ('7718020063 ' , $ event ->getId ());
536- $ this ->assertEquals (['7716830082 ' , '7723330021 ' , '7718750065 ' , '7716830585 ' ], $ event ->getExperimentIds ());
537+ $ this ->assertEquals (['7716830082 ' , '7716830083 ' , ' 7723330021 ' , '7718750065 ' , '7716830585 ' ], $ event ->getExperimentIds ());
537538 }
538539
539540 public function testGetEventInvalidKey ()
@@ -653,6 +654,13 @@ public function testGetVariationFromKeyValidExperimentKeyValidVariationKey()
653654 $ this ->assertEquals ('control ' , $ variation ->getKey ());
654655 }
655656
657+ public function testGetVariationFromKeyValidExperimentIdValidVariationKey ()
658+ {
659+ $ variation = $ this ->config ->getVariationFromKeyByExperimentId ('7716830083 ' , 'control ' );
660+ $ this ->assertEquals ('7722370028 ' , $ variation ->getId ());
661+ $ this ->assertEquals ('control ' , $ variation ->getKey ());
662+ }
663+
656664 public function testGetVariationFromKeyValidExperimentKeyInvalidVariationKey ()
657665 {
658666 $ this ->loggerMock ->expects ($ this ->once ())
@@ -690,6 +698,13 @@ public function testGetVariationFromIdValidExperimentKeyValidVariationId()
690698 $ this ->assertEquals ('7722370027 ' , $ variation ->getId ());
691699 }
692700
701+ public function testGetVariationFromIdValidExperimentIdValidVariationId ()
702+ {
703+ $ variation = $ this ->config ->getVariationFromIdByExperimentId ('7716830083 ' , '7722370028 ' );
704+ $ this ->assertEquals ('control ' , $ variation ->getKey ());
705+ $ this ->assertEquals ('7722370028 ' , $ variation ->getId ());
706+ }
707+
693708 public function testGetVariationFromIdValidExperimentKeyInvalidVariationId ()
694709 {
695710 $ this ->loggerMock ->expects ($ this ->once ())
0 commit comments