assertNotRegExp( '/\{\{htmlescape.*?\}\}/i', file_get_contents($file), 'Directive {{htmlescape}} is obsolete. Use {{var}} instead.' ); $this->assertNotRegExp( '/\{\{escapehtml.*?\}\}/i', file_get_contents($file), 'Directive {{escapehtml}} is obsolete. Use {{var}} instead.' ); }, \Magento\Framework\App\Utility\Files::init()->getEmailTemplates() ); } }