Andy Miller
51623ee0da
Added custom_base test
2024-05-08 12:35:16 +01:00
Matias Griese
38b1556ee0
Fix unit test #2184
2021-03-31 21:29:59 +03:00
Matias Griese
a8a960d10b
Updated unit tests
2021-02-01 11:14:53 +02:00
Matias Griese
2c3ced3fba
Merge branch 'develop' of github.com:getgrav/grav into 1.7
2020-01-30 09:11:53 +02:00
Matias Griese
a592f6fe0b
Fixed unit test for Uri::currentPage(): it only returns integers now
2020-01-30 09:11:19 +02:00
Patric Johansson
4bba284bf5
Update Core to follow PSR-2 standard
2019-10-15 13:33:48 +03:00
Andy Miller
d54387b281
Backwards compatiblity with old Uri::__toString() output
2019-04-15 19:21:14 -06:00
Andy Miller
ad173ca129
Improved redirect_default_route logic as well as Uri::toArray() to take into account root_path and extension
2019-04-15 12:44:48 -06:00
Gabriel Caruso
f261173de2
Refactoring tests ( #1779 )
2018-01-19 11:15:20 -07:00
Matias Griese
2842b8fa39
Fixed routing paths with urlencoded spaces and non-latin letters ( #1688 )
2017-10-17 14:40:30 +03:00
Matias Griese
3856a2a719
Add unit test for #1688
2017-10-16 11:13:25 +03:00
Matias Griese
92afba0e28
Add test case for #1244
2017-10-12 18:36:10 +03:00
Andy Miller
974fc552c5
Added another complex test
2017-10-11 19:24:16 -06:00
Andy Miller
e23d245091
URI class improvements ( #1681 )
...
* Clean up and simplify Uri code
* Rewrite and clean up Uri class (fixes broken test cases)
* Fix some more Uri bugs based on new unit tests
* Removed double encoding
* Added html_entity_decode on params to handle UTF8 chars
* Uri: Fix protocol/host omitting URLs and default ports
* Added support for `$uri->toArray()` and `(string)$uri`
* Fixed bug in `Uri::buildParams()` causing parameters to be repeated
* Fixed double // in `Uri::addNonce()` when URL ends to slash, added tests for nonce
* Fixed nonce generation for URLs which contain query params or anchor
* Added a test for UTF-8 params
* Removed troublesome test!
2017-10-11 10:29:51 -06:00
Matias Griese
4dde506216
Add Uri tests for some more attacks
2017-10-05 20:31:06 +03:00
Matias Griese
c532cb7d45
Update Uri tests (including 11 failing tests)
2017-10-05 19:25:18 +03:00
Andy Miller
b8a0903b88
Deter XSS attacks via URI
2017-10-03 17:44:10 -06:00
Andy Miller
7fc2f20f1b
Better handling of params with more complex Urls - #859
2016-05-30 16:41:07 -06:00
Andy Miller
d349e5d67b
Support localhost environments based on hostname for vhost support - #772
2016-04-06 12:03:39 -06:00
Andy Miller
14353c50d8
added fragment support to URI #711
2016-03-04 16:33:18 -07:00
Flavio Copes
6791244e38
Merge branch 'develop' into feature/reset-grav-every-test
2016-02-25 16:52:56 +01:00
Andy Miller
de9b6df2c7
removed TODOs..
2016-02-05 12:17:08 -07:00
Flavio Copes
54f959b462
Reinitialize Grav on every test
...
Don't need to worry about changing configuration or pages or anything
in a test, every test method will start with a clean slate
2016-02-04 14:12:27 +01:00
Andy Miller
72836982e6
various fixes for broken tests
2016-02-02 22:45:42 -07:00
Flavio Copes
9d67f1ac33
✅ Fix assertSame param order
2016-02-01 18:55:33 +01:00
Flavio Copes
c307f63e1f
✅ Cleanup tests
2016-01-29 18:32:52 +01:00
Flavio Copes
1494247c85
✅ Tests code cleanup
2016-01-29 18:32:52 +01:00
Andy Miller
a579544130
Missed one error
2016-01-26 15:09:31 -07:00
Andy Miller
a8bfa88cac
Fix URITest with static methods
2016-01-26 15:08:52 -07:00
Flavio Copes
49dd8b3c9d
Cleanup
2016-01-19 14:16:15 +01:00
Flavio Copes
26434d26fe
Finish Uri testing with test of Uri::addNonce()
2016-01-19 13:27:50 +01:00
Flavio Copes
d237a1e037
Test Uri::buildUrl()
2016-01-19 13:19:19 +01:00
Flavio Copes
6c7a1b335b
Improve test
2016-01-19 13:17:45 +01:00
Flavio Copes
ad65816c35
Fix case
2016-01-19 13:17:36 +01:00
Flavio Copes
ed28a5dc62
Test Uri::referrer(), Uri::ip(), Uri::isExternal(), Uri::currentPage(), Uri::rootUrl(), Uri::base(), Uri::basename()
2016-01-19 13:17:16 +01:00
Flavio Copes
9fee3d4c59
Test Uri::environment()
2016-01-19 13:16:15 +01:00
Flavio Copes
9b1b69fcae
Test Uri::port()
2016-01-19 11:37:46 +01:00
Flavio Copes
4dd57daec0
Test Uri::host()
2016-01-19 11:37:35 +01:00
Flavio Copes
7813d18b1b
Test Uri::extension()
2016-01-19 11:37:25 +01:00
Flavio Copes
f35bff4f59
Test Uri::path()
2016-01-19 11:37:14 +01:00
Flavio Copes
fd47620817
Test Uri::url()
2016-01-19 11:37:01 +01:00
Flavio Copes
b949b512e2
Test Uri::param()
2016-01-19 11:18:22 +01:00
Flavio Copes
1a5abcbcbc
Test Uri paths(), route(), query(), params()
2016-01-18 14:29:50 +01:00
Flavio Copes
90568da797
Fix setting port
2016-01-18 13:30:06 +01:00
Flavio Copes
2035a9a800
More testing
2016-01-18 11:17:17 +01:00
Flavio Copes
e1f95b54d5
Initial testing on the Uri class. Test the new validateHostname() method and tests initializeWithUrl() with some url examples
2016-01-15 21:47:05 +01:00