From aa33cb6ef1da30396a3b34dca6f53d7818da73c8 Mon Sep 17 00:00:00 2001 From: Ivan Chaplygin Date: Thu, 11 Apr 2024 15:01:42 +0300 Subject: [PATCH] ref #72067 Add Test --- tests/test-wc-retailcrm-loyalty.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test-wc-retailcrm-loyalty.php b/tests/test-wc-retailcrm-loyalty.php index 0396de5..93d40b0 100644 --- a/tests/test-wc-retailcrm-loyalty.php +++ b/tests/test-wc-retailcrm-loyalty.php @@ -71,6 +71,20 @@ class WC_Retailcrm_Loyalty_Test extends WC_Retailcrm_Test_Case_Helper } } + public function testRegistrationLoyalty() + { + $result = $this->loyalty->registerCustomer(1, '89999999999', 'test'); + + $this->assertTrue($result); + } + + public function testActivateLoyalty() + { + $result = $this->loyalty->activateLoyaltyCustomer(1); + + $this->assertTrue($result); + } + public function responseLoyalty() { return [