ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
$template = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
|
||||
\Magento\Newsletter\Model\Template::class
|
||||
);
|
||||
$template->setTemplateCode(
|
||||
'fixture_tpl'
|
||||
)->setTemplateText(
|
||||
'<p>Follow this link to unsubscribe</p>
|
||||
<!-- This tag is for unsubscribe link -->
|
||||
<p><a href="{{var subscriber.getUnsubscriptionLink()}}">{{var subscriber.getUnsubscriptionLink()}}</a></p>'
|
||||
)->setTemplateType(
|
||||
2
|
||||
)->setTemplateSubject(
|
||||
'Subject'
|
||||
)->setTemplateSenderName(
|
||||
'CustomerSupport'
|
||||
)->setTemplateSenderEmail(
|
||||
'support@example.com'
|
||||
)->setTemplateActual(
|
||||
1
|
||||
)->save();
|
||||
Reference in New Issue
Block a user