@@ -103,42 +103,6 @@ public function testPhaseJobFailedSubscription(): void
103103 }
104104
105105 public function testPhaseJobSucceededWithWarningSubscription (): void
106- {
107- $ subscriptionRequest = new Subscription (
108- 'phase-job-failed ' ,
109- new EmailRecipient ('john.doe@example.com ' ),
110- [
111- new Filter ('job.component.id ' , 'my.component ' ),
112- new Filter ('job.configuration.id ' , '12345 ' ),
113- new Filter ('phase.id ' , '123 ' ),
114- ]
115- );
116- self ::assertSame (
117- [
118- 'event ' => 'phase-job-failed ' ,
119- 'filters ' => [
120- [
121- 'field ' => 'job.component.id ' ,
122- 'value ' => 'my.component ' ,
123- ],
124- [
125- 'field ' => 'job.configuration.id ' ,
126- 'value ' => '12345 ' ,
127- ],
128- [
129- 'field ' => 'phase.id ' ,
130- 'value ' => '123 ' ,
131- ],
132- ],
133- 'recipient ' => [
134- 'channel ' => 'email ' ,
135- 'address ' => 'john.doe@example.com ' ,
136- ],
137- ],
138- $ subscriptionRequest ->jsonSerialize ()
139- );
140- }
141- public function testPhaseJobSubscription (): void
142106 {
143107 $ subscriptionRequest = new Subscription (
144108 'phase-job-succeeded-with-warning ' ,
@@ -151,7 +115,7 @@ public function testPhaseJobSubscription(): void
151115 );
152116 self ::assertSame (
153117 [
154- 'event ' => 'phase-job-processing-long ' ,
118+ 'event ' => 'phase-job-succeeded-with-warning ' ,
155119 'filters ' => [
156120 [
157121 'field ' => 'job.component.id ' ,
0 commit comments