Skip to content

Commit 65b97a4

Browse files
committed
test: additional test specific for character case
1 parent 5c62afb commit 65b97a4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/testcases/EnqueueTest.php

+20
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,26 @@ public function test_printPublicPath_with_subfolders() {
125125
$this->assertContains( 'window.__wpackIofooassetsDist=\'' . $this->templateDirectoryUri . '/assets/Dist/\'', $result );
126126
}
127127

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+
128148
/**
129149
* @testdox `getUrl` works for regular themes
130150
*/

0 commit comments

Comments
 (0)