277 Commits

Author SHA1 Message Date
Marc Jauvin
4f43dfd7fc
Check overrides for parent locale when compiling language files (#242)
Credit to @mjauvin and @jaxwilko
2021-09-28 16:50:31 -06:00
Luke Towers
fcf91249b6 incorrect path to class 2021-07-19 17:26:52 -06:00
Luke Towers
8515a3fa2f fix tests 2021-07-19 17:15:19 -06:00
Luke Towers
ff9c934853
Revert "Add class alias registration method to plugins (#152)" (#176)
This reverts commit 203d2c4ebac696d39d3dbd92137077db3fb82978 as it was causing issues with classes that didn't exist.

> The class that is not found is: Winter\User\Classes\UserEventBase
2021-05-14 09:15:40 -06:00
Marc Jauvin
203d2c4eba
Add class alias registration method to plugins (#152) 2021-05-06 12:31:24 +08:00
jaxwilko
812f524101
Only show plugin warnings for active replacements (#122) 2021-04-26 09:10:59 -06:00
jaxwilko
0bebcd82d1
Added plugin registration after loading (#113) 2021-04-24 17:43:06 -06:00
Luke Towers
4a6bc4df6a
Add support for plugin replacement / forking (#41)
Documented by https://github.com/wintercms/docs/pull/11

Co-authored-by: @jaxwilko Jack Wilkinson <me@jackwilky.com>
Co-authored-by: @mjauvin Marc Jauvin <marc.jauvin@gmail.com>
Co-authored-by: @bennothommo Ben Thomson <git@alfreido.com>
Co-authored-by: @LukeTowers  Luke Towers <github@luketowers.ca>
2021-04-21 13:50:59 -06:00
Ben Thomson
906d4d65c0
Add support for version forks in "winter:version" command (#1) 2021-04-01 09:05:15 -06:00
Luke Towers
0ebe3bc074 Revert "Add version.yaml processing for Symfony/Yaml v4 support (#65)"
This reverts commit 181f2130797a1c19db4ce176c0f79d5b3de546ee.
2021-03-28 20:31:19 -06:00
Ben Thomson
181f213079
Add version.yaml processing for Symfony/Yaml v4 support (#65)
Fixes #13
Follows on from wintercms/storm#16

Moves the version.yaml processing into the System module and updates all version file parsing to use this new processor.
2021-03-27 21:25:42 -06:00
Marc Jauvin
dd290243f6
Add support for registerValidationRules in Plugin.php (#46)
Credit to @SaifurRahmanMohsin. Originally octobercms/october#5513.
2021-03-22 16:29:43 -06:00
Luke Towers
07863c0437
Add support for pivot data in deferred bindings (#47)
Requires: wintercms/storm@e7e8da2

Refs: octobercms/library#555, octobercms/october#5466. Fixes octobercms/october#1409.
2021-03-20 23:50:18 -06:00
Luke Towers
c047f34156 Merge branch 'wip/rebrand-1.0' into wip/rebrand-develop
# Conflicts:
#	.github/workflows/code-quality-pr.yaml
#	.github/workflows/code-quality-push.yaml
#	.github/workflows/tests.yml
#	README.md
#	composer.json
#	modules/backend/behaviors/ImportExportController.php
#	modules/backend/behaviors/ReorderController.php
#	modules/backend/composer.json
#	modules/backend/models/ExportModel.php
#	modules/cms/ServiceProvider.php
#	modules/cms/classes/Asset.php
#	modules/cms/classes/CmsObject.php
#	modules/cms/classes/CmsObjectCollection.php
#	modules/cms/composer.json
#	modules/system/ServiceProvider.php
#	modules/system/aliases.php
#	modules/system/assets/js/lang/lang.es.js
#	modules/system/assets/js/lang/lang.it.js
#	modules/system/assets/js/lang/lang.zh-tw.js
#	modules/system/assets/ui/storm-min.js
#	modules/system/classes/CombineAssets.php
#	modules/system/classes/ErrorHandler.php
#	modules/system/classes/SystemController.php
#	modules/system/classes/UpdateManager.php
#	modules/system/composer.json
#	modules/system/console/WinterFresh.php
#	modules/system/console/WinterUtil.php
#	modules/system/controllers/updates/_list_toolbar.htm
#	modules/system/providers.php
#	tests/UiTestCase.php
#	tests/functional/backend/AuthTest.php
#	tests/functional/phpunit.xml
#	tests/unit/backend/classes/NavigationManagerTest.php
#	tests/unit/cms/classes/CmsObjectTest.php
#	tests/unit/cms/classes/ControllerTest.php
#	tests/unit/cms/classes/ThemeTest.php
#	tests/unit/plugins/database/PluginModelTest.php
#	tests/unit/plugins/database/ValidationModelTest.php
#	tests/unit/system/console/WinterEnvTest.php
2021-03-11 00:22:09 -06:00
Luke Towers
1e8cfb47af Manual comb through and rebrand following up the bulk patch rebrand 2021-03-10 15:25:57 -06:00
Luke Towers
cfa763b714 Initial rebrand commit generated from the 1.0 rebrand branch patch file 2021-03-10 15:02:53 -06:00
Luke Towers
88d45bb191 Add aliasing support to AuthManager permission registration and fixed an issue where the permission cache wasn't cleared after changing the available permissions 2021-03-10 02:36:38 -06:00
Jack Wilkinson
05b2b68690 Added patch for phpunit v6.5 asserts and rebranded test cases 2021-03-09 22:29:57 +00:00
Luke Towers
a77e8b3b66 Add support for NavigationManager owner aliasing.
Written by @jaxwilko in #4
2021-03-09 14:12:25 -06:00
Ben Thomson
d10cda3e3c
Re-enable skipped test 2021-03-09 10:48:18 +08:00
Ben Thomson
9b85e3490a Fix unit tests in 1.0
Refs: 3d4b451744
2021-03-08 22:37:34 +08:00
Ben Thomson
99389b9504 Drop guarded attribute test
This is being tested in the library and guarded attributes appear to be working correctly, so this test isn't needed.
2021-03-08 22:33:46 +08:00
Ben Thomson
aec567b62d Fix Navigation Manager tests 2021-03-08 22:32:24 +08:00
Luke Towers
ca2c5a321e typo fix 2021-03-08 03:41:59 -06:00
Luke Towers
508ae3fdbf fix db tests 2021-03-08 03:41:38 -06:00
Luke Towers
d52ea0ccf8 further WIP on rebrand 2021-03-08 02:41:13 -06:00
Luke Towers
62fbbdc182 Further WIP on October -> Winter rebrand 2021-03-07 02:24:21 -06:00
Luke Towers
7d80b771fe Initial work on Winter rebrand for 1.0 branch 2021-03-06 04:06:19 -06:00
Ben Thomson
61df8cf321 Add stubs for renamed PHPUnit methods in PHPUnit 9 2021-03-01 23:09:16 +08:00
Ben Thomson
09b07dcbab Merge remote-tracking branch 'origin/develop' into wip/php-8-testing 2021-03-01 22:39:35 +08:00
Marc Jauvin
00f65ca725
Honor cms.linkPolicy config in ImageResizer (#5401) 2021-02-26 13:53:18 -06:00
Tolkam
26b231cad9
PHP 8 compatibility fixes (#5454)
Co-authored-by: Kanstantsin K <kk@tolkam.by>
2021-02-04 11:59:44 +08:00
Luke Towers
dd4e325298 more fixes 2021-01-04 17:35:33 -06:00
Jim Cottrell
6cd5ec688a
Ensure that MediaLibrary::listAllDirectories() honors config for paths to ignore (#5367) 2020-12-09 13:09:38 +08:00
Ben Thomson
3a8d504384
Fix unit tests (#5374) 2020-12-08 15:33:23 +08:00
Saifur Rahman Mohsin
d95e282910
Fixes OptionsGeneration Test failing (#5327)
As [mentioned here](9dca130fae (commitcomment-43513975)), this fixes the test failure.

Co-authored-by: Luke Towers <github@luketowers.ca>
2020-11-21 09:45:20 +08:00
Ben Thomson
d7d6faeedb
Generate random password for seeded admin account through october:up (#4866) 2020-11-20 03:43:33 -06:00
Luke Towers
9dca130fae Add unit tests for the different ways of providing field options 2020-09-11 11:33:44 -06:00
Ben Thomson
ce361cae67
Fix UpdatesController test 2020-09-11 15:34:24 +08:00
Ben Thomson
e7b1862c44
Add unit tests for #5271 2020-09-11 15:26:58 +08:00
Luke Towers
67cabdcb28 fix broken media tests 2020-09-08 16:11:12 -06: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
Luke Towers
3d4b451744 Fix unit tests 2020-09-04 12:15:00 -06:00
Ben Thomson
106daa2930
Fix unit tests for source manifest 2020-09-03 11:52:03 +08: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
Luke Towers
1e6573cc62 Cleaned up inline docs for ImageResizer, fixed tests 2020-08-21 14:07:23 -06:00
Ben Thomson
b795ba6a28
Add URL sources tests 2020-08-19 11:02:00 +08:00
Ben Thomson
1f5350b0b2
Test falsey width/height values 2020-08-19 10:11:42 +08:00
Ben Thomson
5b5a15b4c6
Ensure theme cache is rest to the "test" theme for ImageResizer 2020-08-17 16:54:16 +08:00
Ben Thomson
aeae1bd0f5
Remove trailing commas in commands
PHP 7.2 doesn't like them, apparently.
2020-08-17 16:45:41 +08:00