File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Tests/Unit/Doctrine/Phpcr Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,28 @@ public function testGetCandidates()
50
50
);
51
51
}
52
52
53
+ public function testGetCandidatesPercentEncoded ()
54
+ {
55
+ $ request = Request::create ('/my/path%20percent%20encoded.html ' );
56
+
57
+ $ candidates = new PrefixCandidates (array ('/routes ' , '/simple ' ));
58
+ $ paths = $ candidates ->getCandidates ($ request );
59
+
60
+ $ this ->assertEquals (
61
+ array (
62
+ '/routes/my/path percent encoded.html ' ,
63
+ '/routes/my/path percent encoded ' ,
64
+ '/routes/my ' ,
65
+ '/routes ' ,
66
+ '/simple/my/path percent encoded.html ' ,
67
+ '/simple/my/path percent encoded ' ,
68
+ '/simple/my ' ,
69
+ '/simple ' ,
70
+ ),
71
+ $ paths
72
+ );
73
+ }
74
+
53
75
public function testGetCandidatesLocales ()
54
76
{
55
77
$ request = Request::create ('/de/path.html ' );
You can’t perform that action at this time.
0 commit comments