Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getMail () | |
testSetGetTemplateFilter () | |
testLoadDefault () | |
testGetProcessedTemplate () | |
testTemplateFallback ($area, $templateId, $expectedOutput, $mockThemeFallback=false) | |
templateFallbackDataProvider () | |
testTemplateDirective ( $area, $templateType, $templateText, $assertContains, $assertNotContains=null, $storeConfigPath=null, $mockAdminTheme=false) | |
templateDirectiveDataProvider () | |
testTemplateStylesVariable ($area, $expectedOutput, $unexpectedOutputs, $templateForDatabase=[]) | |
templateStylesVariableDataProvider () | |
testGetProcessedTemplateSubject () | |
testGetDefaultEmailLogo () | |
testSetDesignConfigException ($config) | |
setDesignConfigExceptionDataProvider () | |
testSetAndGetId () | |
testIsValidForSend () | |
testGetTypeNonExistentType () | |
testGetTypeHtml () | |
testGetType () | |
testGetSendingException () | |
testGetVariablesOptionArray () | |
testGetVariablesOptionArrayInGroup () | |
testBeforeSaveEmptyTemplateCode () | |
testBeforeSave () | |
testProcessTemplate () | |
testGetSubject () | |
testSetOptions () | |
Protected Member Functions | |
setUp () | |
mockModel ($filesystem=null) | |
Protected Attributes | |
$model | |
$objectManager | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 20 of file TemplateTest.php.
getMail | ( | ) |
Return a disposable \Zend_Mail instance
Definition at line 83 of file TemplateTest.php.
|
protected |
Definition at line 42 of file TemplateTest.php.
setDesignConfigExceptionDataProvider | ( | ) |
Definition at line 629 of file TemplateTest.php.
|
protected |
Definition at line 37 of file TemplateTest.php.
templateDirectiveDataProvider | ( | ) |
Definition at line 276 of file TemplateTest.php.
templateFallbackDataProvider | ( | ) |
templateStylesVariableDataProvider | ( | ) |
Definition at line 412 of file TemplateTest.php.
testBeforeSave | ( | ) |
Definition at line 720 of file TemplateTest.php.
testBeforeSaveEmptyTemplateCode | ( | ) |
@expectedException \Magento\Framework\Exception\MailException @expectedExceptionMessage Please enter a template name.
Definition at line 714 of file TemplateTest.php.
testGetDefaultEmailLogo | ( | ) |
@magentoAppIsolation enabled
Definition at line 604 of file TemplateTest.php.
testGetProcessedTemplate | ( | ) |
@magentoAppIsolation enabled @magentoDataFixture Magento/Store/_files/core_fixturestore.php
Definition at line 117 of file TemplateTest.php.
testGetProcessedTemplateSubject | ( | ) |
@magentoAppIsolation enabled @magentoDataFixture Magento/Store/_files/core_fixturestore.php
Definition at line 573 of file TemplateTest.php.
testGetSendingException | ( | ) |
Definition at line 682 of file TemplateTest.php.
testGetSubject | ( | ) |
Definition at line 734 of file TemplateTest.php.
testGetType | ( | ) |
@dataProvider getTypeDataProvider
string | $templateType | |
int | $expectedResult |
Definition at line 674 of file TemplateTest.php.
testGetTypeHtml | ( | ) |
Definition at line 667 of file TemplateTest.php.
testGetTypeNonExistentType | ( | ) |
@expectedException \UnexpectedValueException @expectedExceptionMessage Email template 'foo' is not defined.
Definition at line 660 of file TemplateTest.php.
testGetVariablesOptionArray | ( | ) |
Definition at line 688 of file TemplateTest.php.
testGetVariablesOptionArrayInGroup | ( | ) |
Definition at line 700 of file TemplateTest.php.
testIsValidForSend | ( | ) |
Definition at line 650 of file TemplateTest.php.
testLoadDefault | ( | ) |
Definition at line 103 of file TemplateTest.php.
testProcessTemplate | ( | ) |
Definition at line 727 of file TemplateTest.php.
testSetAndGetId | ( | ) |
Definition at line 642 of file TemplateTest.php.
testSetDesignConfigException | ( | $config | ) |
$config | @dataProvider setDesignConfigExceptionDataProvider @expectedException \Magento\Framework\Exception\LocalizedException |
Definition at line 622 of file TemplateTest.php.
testSetGetTemplateFilter | ( | ) |
Definition at line 88 of file TemplateTest.php.
testSetOptions | ( | ) |
Definition at line 741 of file TemplateTest.php.
testTemplateDirective | ( | $area, | |
$templateType, | |||
$templateText, | |||
$assertContains, | |||
$assertNotContains = null , |
|||
$storeConfigPath = null , |
|||
$mockAdminTheme = false |
|||
) |
Test template directive to ensure that templates can be loaded from modules, overridden in backend, and overridden in themes
@magentoDataFixture Magento/Store/_files/core_fixturestore.php @magentoComponentsDir Magento/Email/Model/_files/design @magentoAppIsolation enabled @magentoDbIsolation enabled @dataProvider templateDirectiveDataProvider
string | $area | |
int | $templateType | |
string | $templateText | |
string | $assertContains | |
string | $assertNotContains | |
string | $storeConfigPath | |
bool | $mockAdminTheme |
Definition at line 231 of file TemplateTest.php.
testTemplateFallback | ( | $area, | |
$templateId, | |||
$expectedOutput, | |||
$mockThemeFallback = false |
|||
) |
Test template directive to ensure that templates can be loaded from modules
string | $area | |
string | $templateId | |
string | $expectedOutput | |
bool | $mockThemeFallback | @magentoDataFixture Magento/Store/_files/core_fixturestore.php @magentoComponentsDir Magento/Email/Model/_files/design @magentoAppIsolation enabled @magentoDbIsolation enabled @dataProvider templateFallbackDataProvider |
Definition at line 154 of file TemplateTest.php.
testTemplateStylesVariable | ( | $area, | |
$expectedOutput, | |||
$unexpectedOutputs, | |||
$templateForDatabase = [] |
|||
) |
Ensure that the template_styles variable contains styles from either or the "Template Styles" textarea in backend, depending on whether template was loaded from filesystem or DB.
@magentoDataFixture Magento/Store/_files/core_fixturestore.php @magentoComponentsDir Magento/Email/Model/_files/design @magentoAppIsolation enabled @magentoDbIsolation enabled @dataProvider templateStylesVariableDataProvider
string | $area | |
string | $expectedOutput | |
array | $unexpectedOutputs | |
array | $templateForDatabase |
Definition at line 359 of file TemplateTest.php.
|
protected |
Definition at line 30 of file TemplateTest.php.
|
protected |
Definition at line 25 of file TemplateTest.php.
|
protected |
Definition at line 35 of file TemplateTest.php.