@@ -71,6 +71,8 @@ mod tests {
71
71
"classic-editor/classic-editor" ,
72
72
"/plugins/classic-editor/classic-editor"
73
73
) ]
74
+ #[ case( "foo/bar%baz" , "/plugins/foo/bar%25baz" ) ]
75
+ #[ case( "foo/です" , "/plugins/foo/%E3%81%A7%E3%81%99" ) ]
74
76
fn delete_plugin (
75
77
plugins_endpoint : PluginsEndpoint ,
76
78
#[ case] plugin_slug : & str ,
@@ -103,6 +105,12 @@ mod tests {
103
105
WPContext :: Embed ,
104
106
"/plugins/classic-editor/classic-editor?context=embed"
105
107
) ]
108
+ #[ case( "foo/bar%baz" , WPContext :: Edit , "/plugins/foo/bar%25baz?context=edit" ) ]
109
+ #[ case(
110
+ "foo/です" ,
111
+ WPContext :: View ,
112
+ "/plugins/foo/%E3%81%A7%E3%81%99?context=view"
113
+ ) ]
106
114
fn retrieve_plugin (
107
115
plugins_endpoint : PluginsEndpoint ,
108
116
#[ case] plugin_slug : & str ,
@@ -121,6 +129,8 @@ mod tests {
121
129
"classic-editor/classic-editor" ,
122
130
"/plugins/classic-editor/classic-editor"
123
131
) ]
132
+ #[ case( "foo/bar%baz" , "/plugins/foo/bar%25baz" ) ]
133
+ #[ case( "foo/です" , "/plugins/foo/%E3%81%A7%E3%81%99" ) ]
124
134
fn update_plugin (
125
135
plugins_endpoint : PluginsEndpoint ,
126
136
#[ case] plugin_slug : & str ,
0 commit comments