diff --git a/tests/acceptance/ConfirmNotificationAutosaveCest.php b/tests/acceptance/ConfirmNotificationAutosaveCest.php index 2b2b754338..4e835eccc0 100644 --- a/tests/acceptance/ConfirmNotificationAutosaveCest.php +++ b/tests/acceptance/ConfirmNotificationAutosaveCest.php @@ -11,8 +11,7 @@ class ConfirmNotificationAutosaveCest { $I->wantTo('Confirm Post Notification Autosave'); $newsletter_title = 'Notification Autosave Test'; // step 1 - Prepare post notification data - $newsletterFactory = new Newsletter(); - $newsletter = $newsletterFactory->withSubject($newsletter_title) + $newsletter = $newsletter->withSubject($newsletter_title) ->withType('notification') ->withPostNoticationOptions() ->create();