Files
piratepoet/tests/unit/_bootstrap.php
Vlad 4538cab6c8 - Adds newsletter body/subject as a reusable template through
Codeception's Fixture utility class
2016-09-19 20:40:17 -04:00

38 lines
858 B
PHP

<?php
use Codeception\Util\Fixtures;
Fixtures::add(
'newsletter_body_template',
'{
"content": {
"type": "container",
"orientation": "vertical",
"blocks": [
{
"type": "container",
"styles": { "block": {} },
"orientation": "horizontal",
"blocks": [
{
"type": "container",
"orientation": "vertical",
"styles": { "block": {} },
"blocks": [
{
"type": "text",
"text": "<a data-post-id=\"10\" href=\"http://example.com\">Link</a>Hello [subscriber:firstname]"
}
]
}
]
}
]
}
}'
);
Fixtures::add(
'newsletter_subject_template',
'Newsletter for [subscriber:firstname]'
);