init
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Magento\Email\Model\Template;
|
||||
|
||||
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class VariableCompatibilityCheckerTest extends TestCase
|
||||
{
|
||||
public function testCompatibilityCheck()
|
||||
{
|
||||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
|
||||
/** @var VariableCompatibilityChecker $checker */
|
||||
$checker = $objectManager->get(VariableCompatibilityChecker::class);
|
||||
$errors = $checker->getCompatibilityIssues(file_get_contents(__DIR__ . '/../_files/variables_template.html'));
|
||||
|
||||
self::assertCount(17, $errors);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user