File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -86,4 +86,20 @@ public function testCreatePartialWithNewStructure()
86
86
$ this ->assertEquals ("publicKey " , $ subscription ->getPublicKey ());
87
87
$ this ->assertEquals ("authToken " , $ subscription ->getAuthToken ());
88
88
}
89
+
90
+ public function testCreatePartialWithNewStructureAndContentEncoding ()
91
+ {
92
+ $ subscription = Subscription::create ([
93
+ "endpoint " => "http://toto.com " ,
94
+ "contentEncoding " => 'aes128gcm ' ,
95
+ "keys " => [
96
+ 'p256dh ' => 'publicKey ' ,
97
+ 'auth ' => 'authToken '
98
+ ]
99
+ ]);
100
+ $ this ->assertEquals ("http://toto.com " , $ subscription ->getEndpoint ());
101
+ $ this ->assertEquals ("publicKey " , $ subscription ->getPublicKey ());
102
+ $ this ->assertEquals ("authToken " , $ subscription ->getAuthToken ());
103
+ $ this ->assertEquals ("aes128gcm " , $ subscription ->getContentEncoding ());
104
+ }
89
105
}
You can’t perform that action at this time.
0 commit comments