Ben Thomson
50e61df10e
Fix path validation for CmsObjects & Assets ( #5229 )
...
Instead of using a temporary file to allow checks with `realpath()` to succeed, use the new `resolve_path()` helper added in a9a629b012 to replace the `realpath()` usage and allow for path resolution of files that don't exist yet.
This will allow new asset files to still be saved correctly, whilst still preventing paths outside of the assets directory to be used.
Replaces b1954e9258 .
2020-08-05 12:00:22 -06:00
Ben Thomson
5e4916148f
Revert Laravel Dusk changes ( #4919 )
...
The Browser tests will be made into a RainLab plugin. (https://github.com/rainlab/dusk-plugin )
2020-02-07 16:59:39 +08:00
Ben Thomson
65c3a88179
[Laravel 6] Add support for Laravel Dusk tests ( #4919 )
2020-02-03 12:21:04 +08:00
Ben Thomson
2c529cf753
Update unit tests to not rely on deprecated methods of testing
2020-01-19 17:27:38 +08:00
Ben Thomson
7e3136564f
Merge branch 'develop' into wip/laravel-5.9
2019-11-21 23:18:25 +08:00
Ben Thomson
a59d3b83eb
Code quality clean up ( #4449 )
...
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Luke Towers
c7a026c253
Add support for PHPUnit 7.0
2019-06-12 10:22:20 -06:00
Arthur Kushman
c78b3ef786
Code formatting changes ( #3363 )
...
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Samuel Georges
5f2f913732
Fixes unit tests
...
Clearing the cache to allow failures
Substitute mail pretend with log mode
2017-05-12 07:20:59 +10:00
Jérémy Gaulin
e3812036da
Allow usage of namespace alias in the code section a a CMS page, with
...
unit test. Fixes #2006
2016-05-21 16:27:15 +02:00
Samuel Georges
8e3ff0c700
Update tests with minor API changes for Halcyon implementation
2016-03-17 07:58:42 +11:00
Joel E. Svensson
52090e8a9b
Added .stub extension as namespaces.php is not a valid php file
2015-11-04 20:41:53 +01:00
Samuel Georges
bd2b9f2770
Rem incomplete tests
2015-03-02 16:05:26 +11:00
Samuel Georges
415f07eb1d
Fixes various unit tests so they pass (Tested in Windows)
2015-01-05 12:37:04 +11:00
Samuel Georges
65845686c4
Fixes unit tests
2014-12-10 17:42:50 +11:00
Sam Georges
14e277e030
Create functional tests
...
Move unit tests to unit folder
2014-06-17 18:54:31 +10:00