@@ -103,12 +103,28 @@ public function shouldUseCorrectValueForSessionCompletion(): void
103
103
$ this ->assertContains ('SESSION_COMPLETION ' , $ result ->getTopics ());
104
104
}
105
105
106
+ /**
107
+ * @test
108
+ * @covers ::forClientSessionCompletion
109
+ */
110
+ public function shouldUseCorrectValueForClientSessionCompletion (): void
111
+ {
112
+ $ result = (new NotificationConfigBuilder ())
113
+ ->withAuthToken (self ::SOME_AUTH_TOKEN )
114
+ ->withEndpoint (self ::SOME_ENDPOINT )
115
+ ->forClientSessionCompletion ()
116
+ ->build ();
117
+
118
+ $ this ->assertContains ('CLIENT_SESSION_TOKEN_DELETED ' , $ result ->getTopics ());
119
+ }
120
+
106
121
/**
107
122
* @test
108
123
* @covers ::forResourceUpdate
109
124
* @covers ::forTaskCompletion
110
125
* @covers ::forCheckCompletion
111
126
* @covers ::forSessionCompletion
127
+ * @covers ::forClientSessionCompletion
112
128
* @covers ::withTopic
113
129
*/
114
130
public function shouldAllowAllNotificationTypes (): void
@@ -120,13 +136,15 @@ public function shouldAllowAllNotificationTypes(): void
120
136
->forTaskCompletion ()
121
137
->forCheckCompletion ()
122
138
->forSessionCompletion ()
139
+ ->forClientSessionCompletion ()
123
140
->build ();
124
141
125
- $ this ->assertCount (4 , $ result ->getTopics ());
142
+ $ this ->assertCount (5 , $ result ->getTopics ());
126
143
$ this ->assertContains ('RESOURCE_UPDATE ' , $ result ->getTopics ());
127
144
$ this ->assertContains ('TASK_COMPLETION ' , $ result ->getTopics ());
128
145
$ this ->assertContains ('CHECK_COMPLETION ' , $ result ->getTopics ());
129
146
$ this ->assertContains ('SESSION_COMPLETION ' , $ result ->getTopics ());
147
+ $ this ->assertContains ('CLIENT_SESSION_TOKEN_DELETED ' , $ result ->getTopics ());
130
148
}
131
149
132
150
/**
0 commit comments