Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
static
testsuite
Magento
Test
Legacy
EmailTemplateTest.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Test\Legacy
;
11
12
class
EmailTemplateTest
extends
\PHPUnit\Framework\TestCase
13
{
14
public
function
testObsoleteDirectives
()
15
{
16
$invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
17
$invoker(
21
function
($file) {
22
$this->assertNotRegExp(
23
'/\{\{htmlescape.*?\}\}/i'
,
24
file_get_contents
($file),
25
'Directive {{htmlescape}} is obsolete. Use {{var}} instead.'
26
);
27
28
$this->assertNotRegExp(
29
'/\{\{escapehtml.*?\}\}/i'
,
30
file_get_contents
($file),
31
'Directive {{escapehtml}} is obsolete. Use {{var}} instead.'
32
);
33
},
34
\Magento\Framework\App\Utility\Files::init
()->getEmailTemplates()
35
);
36
}
37
}
Magento\Framework\App\Utility\Files\init
static init()
Definition:
Files.php:147
Magento\Test\Legacy\EmailTemplateTest\testObsoleteDirectives
testObsoleteDirectives()
Definition:
EmailTemplateTest.php:14
Magento\Framework\Filesystem\Driver\file_get_contents
file_get_contents()
Definition:
http_mock.php:15
Magento\Test\Legacy\EmailTemplateTest
Definition:
EmailTemplateTest.php:12
Magento\Test\Legacy
Definition:
AutogeneratedClassNotInConstructorTest.php:6