stanley-king 1 tahun lalu
induk
melakukan
ef042b9df9
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      test/mh/TestRefill.php

+ 4 - 2
test/mh/TestRefill.php

@@ -35,8 +35,10 @@ class TestRefill extends TestCase
     public function testDixinCB()
     {
         $content = '{"order_no":"OD40636475187360296","merchant_no":"0059570753462761433314","recharge_account":"13911129867","recharge_status":4,"complete_time":"2023-11-16 15:12:42","settlement_price":"47.30","total_amount":"50.00","actual_amount":"0.00","create_time":"2023-11-16 15:12:41","custom_tag":"123456","sign":"49b7f9f32a34f1c83dcb0d976f28d061"}';
-        $provider = $this->getProvider('dixin_normal');
-        $provider->notify(json_decode($content,true));
+        $provider = $this->getProvider('dixin_normal','RefillCallBack');
+        $content = json_decode($content,true);
+        $provider->verify($content);
+        $provider->notify($content);
 
     }
     public function testJson()