Skip to content

Commit

Permalink
Add test case for #1244
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Oct 12, 2017
1 parent 974fc55 commit 92afba0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/unit/Grav/Common/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,29 @@ class UriTest extends \Codeception\TestCase\Test
'addNonce' => 'http://localhost/a-page.json/nonce:{{nonce}}',
'__toString' => 'http://localhost/a-page', // FIX ME <-
],
'http://localhost/admin/ajax.json/task:getnewsfeed' => [
'scheme' => 'http://',
'user' => null,
'password' => null,
'host' => 'localhost',
'port' => 80,
'path' => '/admin/ajax',
'query' => '',
'fragment' => null,

'route' => '/admin/ajax',
'paths' => ['admin', 'ajax'],
'params' => '/task:getnewsfeed',
'url' => '/admin/ajax',
'environment' => 'localhost',
'basename' => 'ajax.json',
'base' => 'http://localhost',
'currentPage' => 1,
'rootUrl' => 'http://localhost',
'extension' => 'json',
'addNonce' => 'http://localhost/admin/ajax.json/task:getnewsfeed/nonce:{{nonce}}',
'__toString' => 'http://localhost/admin/ajax/task:getnewsfeed',
],
'http://localhost/grav/admin/media.json/route:L1VzZXJzL3JodWsvd29ya3NwYWNlL2dyYXYtZGVtby1zYW1wbGVyL3VzZXIvYXNzZXRzL3FRMXB4Vk1ERTNJZzh5Ni5qcGc=/task:removeFileFromBlueprint/proute:/blueprint:Y29uZmlnL2RldGFpbHM=/type:config/field:deep.nested.custom_file/path:dXNlci9hc3NldHMvcVExcHhWTURFM0lnOHk2LmpwZw==' => [
'scheme' => 'http://',
'user' => null,
Expand Down

0 comments on commit 92afba0

Please sign in to comment.