From 802ab8cd4e5a09751913750b74cea9f89ab9fd53 Mon Sep 17 00:00:00 2001 From: Santiago Date: Tue, 6 Mar 2018 18:04:17 -0300 Subject: [PATCH] Revert test. --- .../app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php b/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php index 442ddcdae..998351b5d 100644 --- a/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php +++ b/dev/tests/mailchimp/tests/app/Ebizmarts/MailChimp/Model/Api/PromoRulesTest.php @@ -66,13 +66,6 @@ public function testGetNewPromoRule() ->disableOriginalConstructor() ->getMock(); - $mailChimpHelperMock = $this->getMockBuilder(Ebizmarts_MailChimp_Helper_Data::class) - ->setMethods(array('getDateMicrotime')) - ->disableOriginalConstructor() - ->getMock(); - - $promoRulesApiMock->expects($this->once())->method('getMailChimpHelper')->willReturn($mailChimpHelperMock); - $mailChimpHelperMock->expects($this->once())->method('getDateMicrotime')->willReturn('2017-05-18-14-45-54-38849500'); $promoRulesApiMock->expects($this->once())->method('getPromoRule')->with(self::PROMORULE_ID)->willReturn($promoRuleMock); $promoRulesApiMock->expects($this->once())->method('generateRuleData')->with($promoRuleMock)->willReturn($promoRuleData); @@ -85,7 +78,7 @@ public function testGetNewPromoRule() $this->assertArrayHasKey("body", $return); $this->assertEquals("POST", $return["method"]); $this->assertRegExp("/\/ecommerce\/stores\/(.*)\/promo-rules/", $return["path"]); - $this->assertEquals(self::BATCH_ID . '_' . self::PROMORULE_ID, $return["operation_id"]); + $this->assertEquals(self::BATCH_ID . "_" . Ebizmarts_MailChimp_Model_Config::IS_PROMO_RULE . '_' . self::PROMORULE_ID, $return["operation_id"]); } public function testMakePromoRulesCollection()