Andy Miller
cad10b6095
Test fixes for session/parsedown changes, jquery update, quark default theme
2018-03-09 12:45:27 -07:00
Andy Miller
e2ce65dc61
cast to array
2018-02-03 14:26:23 -07:00
Andy Miller
f6061e96e8
fix for assets change
2018-02-03 14:19:30 -07:00
Gabriel Caruso
f261173de2
Refactoring tests ( #1779 )
2018-01-19 11:15:20 -07:00
Andy Miller
ee2f5663c4
Revert "Fixed issue #1742 where the creation of GPM object tried to connect to Remote repositories even if only Local package was needed ( #1746 )"
...
This reverts commit 2cc34151df .
2017-12-06 06:41:47 -07:00
Agustin Villalba
2cc34151df
Fixed issue #1742 where the creation of GPM object tried to connect to Remote repositories even if only Local package was needed ( #1746 )
...
All good, thanks!
2017-11-27 21:15:09 -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
ab721de49c
Improved support for Assets with query strings #1451
2017-09-15 09:07:46 -06:00
Andy Miller
7ba69dd5a1
Fixed Pages test
2017-04-14 12:38:59 -06:00
OliverO2
f510e136c8
Add {'loading': 'inline'} option for Js and CSS assets ( #1377 )
...
* Assets.php: Extract common functionaly of addCss() and addJs() into
addTo(), make css() and js() honor $attributes['loading'],
make pipelineCss() and pipelineJs() return generated content
instead of URL depending on new option $returnURL.
* AssetsTest.php: Accept new 'loading' option for CSS, add tests for
adding and pipelining local and remote assets with inline loading.
2017-04-04 11:25:39 -06:00
Frédéric Potvin
459b7c4a33
Fix #1389 related to bin/gpm direct-install ( #1397 )
...
Add --all-yes and --destination options
Fix a problem where temporary package files will not be
cleaned upon command error.
2017-04-02 18:45:57 -06:00
Andy Miller
06e880de57
Fixed a bad method signature causing warning when running tests on GPMTest object
2017-04-01 22:13:43 -06:00
Andy Miller
da2a0f507b
Added a fragment + query test
2017-02-26 14:10:43 -07:00
A----
108312e8c0
Provided empty alt if '' is supplied ( #1262 )
...
* Provided empty alt if '' is supplied
* Fixing some tests
* Regexp tests
* Again.
2017-01-26 16:30:39 -07:00
Djamil Legato
52b68a0a1b
Add range(int min, int max, int step) twig function to generate an array of numbers between min and max, inclusive
2016-12-01 12:40:21 -08:00
Adam Roe
cd15b9197b
Don't truncate HTML if content length is less than summary size ( #1125 ), fixes #1114
2016-10-25 16:25:56 +02:00
Andy Miller
b42366cad2
remote image test
2016-10-19 13:28:35 -06:00
Andy Miller
4715ab7057
One more test
2016-10-11 15:53:31 -06:00
Andy Miller
8d84b94bc7
Some cleanup and a working test
2016-10-06 19:01:48 -06:00
Andy Miller
9a21792b27
Refactored into Excerpts helper but multilang broken
2016-10-06 18:05:56 -06:00
Andy Miller
c6f8fe259a
Removed duplicate method Grav::mime() and used existing (renamed) Utils::getMimeByExtension(), also added Utils::getExtensionByMime()
2016-10-01 17:16:35 -06:00
Andy Miller
53baf47e58
Fixed an issue with inflectorFilter test
2016-09-30 19:11:25 -06:00
Andy Miller
a54f30b8ae
Revamped the Html Truncator code to address issues with invalid HTML #1019
2016-09-06 15:38:36 -06:00
Andy Miller
69133c9118
181st day is in June!
2016-09-01 12:54:33 -06:00
Andy Miller
b58d107ba7
Added RTL in LanguageCodes plus ::getOrientation() and ::isRtl() methods
2016-08-24 16:22:19 -06:00
Andy Miller
5ca2bf4ae8
removed safe email test.. It's random now, not much to test.
2016-08-22 13:50:18 -06:00
Andy Miller
deda94a779
Fix for image not rendering 'id' attribute - #956
2016-08-11 09:56:27 -06:00
Andy Miller
07d95d189c
Added logic to not add timestamp on remote references.
2016-08-01 16:20:02 -06:00
Benny
1fb2d7333c
Feature: Better assets pipelining ( #917 )
...
* Add smart assets pipeline generation
* Drop cache key
* Fix absolute path generation in `buildLocalLink`
* Add unit test case
2016-07-11 13:06:05 -06:00
Andy Miller
4de9c94bd5
Remove double URL encode when processing params in links - #860
2016-05-30 17:14:21 -06:00
Andy Miller
7fc2f20f1b
Better handling of params with more complex Urls - #859
2016-05-30 16:41:07 -06:00
Andy Miller
78891add6a
setDotNotation() Test added
2016-05-25 11:12:56 -06:00
Andy Miller
892fb83a32
Replace remove with dotNotation() methods
2016-05-25 11:05:52 -06:00
Flavio Copes
0a8fd26e04
Use correct version number we'll use
2016-04-20 16:11:16 +02:00
Flavio Copes
2e89ea5f19
Make sure alpha / beta / rc releases for 2.0.0 are included in ~2.0
2016-04-20 15:56:52 +02:00
Flavio Copes
5213867611
Don't load plugins and themes in tests
2016-04-14 20:04:38 +02:00
Flavio Copes
a778878ec5
Fix reinitializing Grav in tests
2016-04-14 19:40:13 +02:00
Flavio Copes
e58994d196
Initialize stream in test
2016-04-14 19:25:35 +02:00
Flavio Copes
773e3b68ef
Simplify test initialization code
2016-04-14 18:54:29 +02:00
Flavio Copes
b4cdeba4cf
Drop seconds test
...
Caused false negatives on Travis
2016-04-12 16:36:52 +02:00
Andy Miller
63c2db5c85
Fix for non http/s external links - #738
2016-04-10 19:26:06 -06:00
Flavio Copes
c47c4bcbf5
Test adding rel attribute to CSS assets group
2016-04-07 13:28:55 +02:00
Andy Miller
d349e5d67b
Support localhost environments based on hostname for vhost support - #772
2016-04-06 12:03:39 -06:00