Add method for getting WC coupons

[MAILPOET-4761]
This commit is contained in:
Jan Lysý
2023-01-16 20:24:42 +01:00
committed by Aschepikov
parent fe536fcdd0
commit 40f4216ff8
13 changed files with 39 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ class AutomaticEmailsTest extends \MailPoetTest {
$wooCommerceEventFactory = $this->diContainer->get(WooCommerceEventFactory::class);
$automaticEmailFactory = $this->makeEmpty(AutomaticEmailFactory::class, [
'createWooCommerceEmail' => new WooCommerce($this->wp, new Helper(), $wooCommerceEventFactory),
'createWooCommerceEmail' => new WooCommerce($this->wp, new Helper($this->wp), $wooCommerceEventFactory),
]);
$this->api = new AutomaticEmails(new AutomaticEmailsController($this->wp, $automaticEmailFactory), $this->wp);
}