Create a data factory for settings
[MAILPOET-1665]
This commit is contained in:
committed by
Rostislav Wolny
parent
a0a5d2b76e
commit
52cc6d5604
@@ -4,7 +4,9 @@ namespace MailPoet\Test\Acceptance;
|
||||
|
||||
use Codeception\Util\Locator;
|
||||
use MailPoet\Test\DataFactories\Form;
|
||||
use MailPoet\Test\DataFactories\Settings;
|
||||
|
||||
require_once __DIR__ . '/../DataFactories/Settings.php';
|
||||
require_once __DIR__ . '/../DataFactories/Form.php';
|
||||
|
||||
class SubscriptionFormCest {
|
||||
@@ -18,6 +20,13 @@ class SubscriptionFormCest {
|
||||
$this->subscriber_email = 'test-form@example.com';
|
||||
}
|
||||
|
||||
function _before() {
|
||||
$settings = new Settings();
|
||||
$settings
|
||||
->withConfirmationEmailSubject()
|
||||
->withConfirmationEmailEnabled();
|
||||
}
|
||||
|
||||
function subscriptionFormWidget(\AcceptanceTester $I) {
|
||||
$form_name = 'Subscription Acceptance Test Form';
|
||||
$form_factory = new Form();
|
||||
|
Reference in New Issue
Block a user