File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,26 @@ public function test_printPublicPath_with_subfolders() {
125
125
$ this ->assertContains ( 'window.__wpackIofooassetsDist= \'' . $ this ->templateDirectoryUri . '/assets/Dist/ \'' , $ result );
126
126
}
127
127
128
+ /**
129
+ * @testdox `printPublicPath` adheres to character case
130
+ */
131
+ public function test_printPublicPath_adheres_to_character_case () {
132
+ $ enqueue = new \WPackio \Enqueue (
133
+ 'foo ' ,
134
+ 'AsSets/&*SubFolder//Dist ' ,
135
+ '1.0.0 ' ,
136
+ 'plugin ' ,
137
+ '/plugin/path/plugin.php '
138
+ );
139
+ \ob_start ();
140
+ $ enqueue ->printPublicPath ();
141
+ $ result = \ob_get_clean ();
142
+ $ this ->assertContains (
143
+ 'window.__wpackIofooAsSetsSubFolderDist= \'' . $ this ->pu . '/ \'' ,
144
+ $ result
145
+ );
146
+ }
147
+
128
148
/**
129
149
* @testdox `getUrl` works for regular themes
130
150
*/
You can’t perform that action at this time.
0 commit comments