Sergey Kasyanov
d865186ac1
Support saving deferred bindings with pivot data. ( #5466 )
...
* Support saving deferred bindings with pivot data.
2021-03-18 06:24:39 +11:00
Ben Thomson
92ab25c582
PHP 8 compatibility ( #5357 )
...
PHP support
2021-03-05 18:20:44 +11:00
Ben Thomson
e7b1862c44
Add unit tests for #5271
2020-09-11 15:26:58 +08:00
Luke Towers
2c4d3c9f98
Fix issue where URLs generated by the ImageResizer were not correctly encoded.
...
Related https://github.com/laravel/framework/issues/34199
2020-09-08 16:04:40 -06:00
Ben Thomson
4141646105
Implement improved "set build" replacement ( #5087 )
...
This change implements an improved "set build" utility through the "october:version" Artisan command that, instead of checking the October CMS server for the latest build, checks the module files against a source manifest kept on GitHub.
This check allows us to accurately determine the build based on the module files in the October CMS installation, and can even detect versions if the module files are modified (except in the cases of extreme modification).
An additional utility has been implemented, "october:manifest", which will build the manifest JSON file in order to provide the maintainers with a way of generating this manifest file as required.
Replaces #4615 .
2020-09-02 14:48:08 +08:00
Ben Thomson
096f5fdce5
Initial unit tests - WIP
2020-08-17 12:06:10 +08:00
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
Luke Towers
ad69711634
Merge branch 'develop' into wip/laravel-6
2020-06-11 10:38:29 -06:00
Luke Towers
d64c3850ff
fix tests, not required since decompileAssets() supports even invalid assets now
2020-06-05 15:59:20 -06:00
Luke Towers
252c9b7f58
Merge branch 'develop' into wip/laravel-6
2020-05-27 12:44:54 -06:00
Dieter Holvoet
40d8bb453e
Get file and folder metadata for media items using a single network call if possible ( #5046 )
...
Co-Authored-By: Ben Thomson <ben@abweb.com.au>. Fixes #5045 .
2020-05-26 03:20:41 -06:00
Luke Towers
4b22d06c60
Merge branch 'develop' into wip/laravel-6
2020-04-04 14:11:05 -06:00
Dan Harrin
903b5b01ea
Add support for "soft" components ( #4539 )
2020-04-05 01:02:43 +08:00
Ben Thomson
ef606c76c5
Merge branch 'develop' into wip/laravel-6
2020-03-27 14:52:15 +08:00
Ben Thomson
6dbfdd7e65
Allow quotes to be correctly handled by october:env ( #4986 )
...
This fix will apply quotes around string environment variables which contain either a single, or double, quote as well as any variables with a hash symbol - escaping any double-quotes encountered. When artisan october:env is run, this should correctly transfer all configuration values from the config files to the .env file.
Fixes #4979 .
2020-03-26 23:40:01 +08: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
26944a5f68
Add simple unit tests for HasOneThrough and HasManyThrough relations
2020-01-22 18:16:36 +08:00
Samuell
348040a4e4
Add permission support for fields, columns and filter scopes ( #4520 )
...
Credit to @Samuell1. Fixes #1837 .
2019-10-09 16:41:53 -06:00
Ben Thomson
a67ccfe993
Allow decompiled Backend JS assets ( #4549 )
...
This change will allow the individual JS assets that are compiled into a full compilation file to be loaded individually instead, allowing the developer to see their changes immediately. It introduces a new configuration variable, `cms.decompileBackendAssets`, that controls this functionality. By default, it is false and not tied to the debug value, requiring it to be explicitly enabled.
2019-08-16 16:19:16 +08:00
Ben Thomson
a59d3b83eb
Code quality clean up ( #4449 )
...
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Ben Thomson
5b80ad2501
Add additional test cases for PluginManager ( #4427 )
...
- Add dependency tests
- Add tests that check wrong casing in requirements
- Clean up current tests
- Provides test case for https://github.com/octobercms/october/pull/4337
2019-07-02 15:34:41 +08:00
Maria Vilaró
faf3069656
Add tests for optional wildcard ( #3964 )
...
Related: https://github.com/octobercms/library/pull/363
2019-06-11 11:08:08 +03:00
Siarhei Karavai
9581b23d1e
Allow multiline changelog messages, preserve correct order of updates ( #4083 )
...
Credit to @GinoPane
2019-02-19 11:11:43 -06:00
Ben Thomson
2002fd6b4b
Prevent plugins that cannot be instantiated from being loaded ( #3956 )
...
Credit to @bennothommo
2018-12-04 11:22:07 -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
fb0121b426
Fixes unit test
2017-11-19 15:43:57 +11:00
Samuel Georges
6aa60305a0
Add test for sensitivity component partial overrides
...
Refs #1854
Laravel looks like it broke ->contains($model), fix test for now
2017-06-27 05:05:24 +10:00
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
26b4a64854
Fixes unit test
...
Throwing a guarded / mass assign exception
2017-03-22 07:47:11 +11:00
Samuel Georges
b32176682f
Add validation model test
...
Refs #2676
2017-03-22 07:31:38 +11:00
Samuel Georges
e45dc9601c
Add database test for import model
...
Refs #2446
2016-11-03 07:09:47 +11:00
Samuel Georges
359461d93e
Styling fix to the welcome widget
...
Add unit test for constraining by pivot data
2016-10-25 07:33:24 +11: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
518dee7730
Write MorphOne model test
...
Refs #1868
2016-04-05 00:03:09 +10:00
Samuel Georges
f45692ce84
(Minor) Fixes test
2016-03-25 17:34:16 +11:00
Samuel Georges
beb851bf5c
Add viewBag tests, this is core functionality now
2016-03-17 19:21:41 +11:00
Samuel Georges
d76863a3ec
Merge branch 'develop' into stable
...
Conflicts:
composer.json
2016-02-27 14:55:52 +11:00
Mariano Custiel
c94706ed05
Added the ability to create instances of components from factories to allow injection of dependencies in components
...
Fixed descriptions
Added missing new lines at the end of fixture components
Fixed problem with include path
Fixed code as suggested. Now everything is solved through app::make
Removed tests that are not needed anymore since last changes
2016-02-22 09:44:14 +01:00
Samuel Georges
4d113dd041
Write collision tests for sluggable
...
Refs #1793
Test concatenated slugs while we're here
2016-02-20 17:15:58 +11:00
scottbedard
88f94a35d8
Add tests for Nullable trait
2016-01-24 21:39:46 -07:00
Samuel Georges
f07bd4ba4b
Write tests for morphTo simple value get/set
2016-01-25 10:15:58 +11:00
Samuel Georges
631304abc2
Tests for model delete event cascading
2016-01-13 20:11:39 +11:00
Samuel Georges
e5aa1d651c
Prepare tests for BelongsToMany relation type
2016-01-06 18:51:31 +11:00
Samuel Georges
471ca41d6f
Merge pull request #1582 from JoelESvensson/rename-stub-file
...
Add .stub extension to stub file
2015-11-28 15:33:41 +11:00
Samuel Georges
4e1d2ca445
Write tests for listsNested on tree traits
2015-11-28 14:12:50 +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
9dc683ba16
Tests for hasOne get/set simple values + deferred binding
2015-10-17 17:51:46 +11:00
Samuel Georges
91d3d4dbde
Swap FileHelper methods for new Ini parser
2015-10-03 07:30:11 +10:00
Samuel Georges
3f7aa9f9f7
Write tests for revisionable trait
2015-09-19 05:36:58 +10:00