File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -88,4 +88,13 @@ public function testAddsInitialSlash(): void
8888 self ::assertSame ('/v1/test ' , Uri::sanitize ('v1/test ' ));
8989 self ::assertSame ('/v1/test/ ' , Uri::sanitize ('v1/test/ ' ));
9090 }
91+
92+ public function testAndroidId (): void
93+ {
94+ self ::assertSame ('/device/<ANDROID-ID>/user/<NUMBER> ' , Uri::sanitize ('/devices/a436d9ffefef80e8/user/999 ' ));
95+ self ::assertSame ('/device/<ANDROID-ID>/user/<NUMBER> ' , Uri::sanitize ('/devices/7b5d68f217d90ff5/user/999 ' ));
96+ self ::assertSame ('/device/<ANDROID-ID>/user/<NUMBER> ' , Uri::sanitize ('/devices/dc900fb903cc308c/user/999 ' ));
97+ self ::assertSame ('/device/<ANDROID-ID>/user/<NUMBER> ' , Uri::sanitize ('/devices/86d144c9078c8176/user/999 ' ));
98+ self ::assertSame ('/device/<ANDROID-ID>/user/<NUMBER> ' , Uri::sanitize ('/devices/86d144c9078c8176/user/8045169 ' ));
99+ }
91100}
You can’t perform that action at this time.
0 commit comments