Remove segment as a required subject

If a segment is given, the subscriber needs to be subscribed to it, otherwise
the subscriber only needs to be globally subscribed

[MAILPOET-5514]
This commit is contained in:
David Remer
2023-04-12 08:20:39 +03:00
committed by Aschepikov
parent fa5c12e584
commit 6ef3435a80
2 changed files with 33 additions and 20 deletions

View File

@@ -67,7 +67,7 @@ class SendEmailActionTest extends \MailPoetTest {
}
public function testItReturnsRequiredSubjects() {
$this->assertSame(['mailpoet:segment', 'mailpoet:subscriber'], $this->action->getSubjectKeys());
$this->assertSame(['mailpoet:subscriber'], $this->action->getSubjectKeys());
}
public function testItIsNotValidIfStepHasNoEmail(): void {