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()