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
bb7df3cb61
Tweak code block in README
2020-02-03 12:24:24 +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
Ben Thomson
e33032441b
Drop monkey-patch on mock objects generator.
...
Reverts 72f85ebc55 . No longer needed with PHPUnit 8.
2020-01-21 09:03:49 +08:00
Ben Thomson
60d6825c0d
Partially revert and restore bootstrap/autoload.php
...
As discussed with @daftspunk, we now have to hard-code some overrides to ensure our helpers are loaded first. To keep the code DRY and self-explanatory, we do need to keep the autoload.php file.
2020-01-20 15:11:38 +08:00
Ben Thomson
e099b7bdee
Move autoloading to index to make it the same as Laravel 6.
...
Implements work done in https://github.com/octobercms/october/pull/4280 .
Credit to @Samuell1
2020-01-20 14:33:14 +08:00
Ben Thomson
d6fc30626c
Un-mark skipped test - seems to be working
2020-01-19 22:41:43 +08:00
Ben Thomson
9be2decce3
Fix guarding for fixtures now that models aren't unguarded by seeders
2020-01-19 22:41:28 +08:00
Ben Thomson
a4c34d1dea
Fix more exception tests
2020-01-19 22:26:21 +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
ae63b096f7
Fix test case incompatibilities, clean up ignores
2020-01-19 16:33:06 +08:00
Ben Thomson
5d3d4ad0b2
Merge branch 'develop' into wip/laravel-5.9
2020-01-18 21:00:40 +08:00
Samuel Georges
15036fd1d9
Tell codesniffer to ignore this patched file
2019-12-09 23:03:03 +11:00
Samuel Georges
72f85ebc55
Monkey patch PHPUnit\Framework\MockObject\Generator
...
This avoids "Function ReflectionType::__toString() is deprecated" warnings
2019-12-09 22:56:51 +11:00
Larry Barker
2b05d01c6c
Support additional file name and path characters in media manager ( #4564 )
...
* Support additional file name and path characters in media manager
When working with abstract file names that may contain additional characters, such as quotes or ampersands, the media manager would throw an error. This PR adds two additional characters to the character whitelist.
* Add unicode filename to tests
2019-12-05 19:44:04 +11:00
Ben Thomson
7e3136564f
Merge branch 'develop' into wip/laravel-5.9
2019-11-21 23:18:25 +08:00
Jim Cottrell
b5ed0b313a
Restore support for Select2 data format in custom select control ( #4712 )
...
Credit to @jimcottrell. Refs: #4413
2019-11-19 15:13:08 +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
07d74ebb1b
Fix sync command, minor cleanup ( #4645 )
...
Fixes #4642 , adds some unit testing for the AutoDatasource. Credit to @bennothommo
2019-10-09 08:54:13 -06:00
Ben Thomson
5f15ed54f9
Initial unit tests for front-end framework ( #4576 )
...
Credit to @bennothommo
2019-09-25 10:23:17 -06:00
Dan Harrin
919835e5de
Add method removePermission() for AuthManager ( #4522 )
...
Allows programmatic removal of permissions being listed in Permission selection widget.
Credit to @DanHarrin.
2019-09-21 23:42:11 +08: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
Dan Harrin
67c9decb20
Standardise use of [] vs array() ( #4548 )
...
Credit to @DanHarrin
2019-08-14 20:46:36 -06:00
Ben Thomson
a59d3b83eb
Code quality clean up ( #4449 )
...
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Tobias Kündig
604f0d060d
Make plugin dependency checks case-insensitive ( #4337 )
...
Normalize the plugin identifier before lookup in the `hasPlugin` call, which should allow plugin dependencies to resolve if mis-cased in the Plugin `$require` property.
Credit to @tobias-kuendig.
2019-07-02 22:12:29 +08: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
Luke Towers
c7a026c253
Add support for PHPUnit 7.0
2019-06-12 10:22:20 -06:00
Panagiotis Koursaris
8811c3dcd4
Fix: Hard-coded URL in ControllerTest::testThemeUrl ( #4378 )
2019-06-11 11:15:01 +03: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
2e0d2d3888
Allow subdirectories in migration file names ( #4225 )
...
Credit to @GinoPane. Fixes #4224 .
2019-03-31 08:46:33 -06:00
Tomasz Strojny
956a234920
Add ability to specify the connection used for running tests ( #4159 )
...
Credit to @czerwonyd
2019-03-31 06:28:24 -06:00
Luke Towers
9113e6f418
Another deprecated class reference updated
2019-03-27 13:15:59 -06:00
Siarhei Karavai
8606db9e77
Add support for file names with multiple dots ( #4211 )
...
Fixes #4210 . Credit to @GinoPane
2019-03-25 09:57:06 -06:00
Denis Denisov
b66084287e
fix(build): Marked test as skipped for further investigation ( #4191 )
2019-03-09 12:14:48 +02: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
Nicolas Da Mutten
2372f0eb23
Adds missing Content-Type header to CSV-export ( #3787 )
...
Credit to @cleverer
2018-09-25 08:55:14 -06:00
Nicolas Da Mutten
aeb7616d06
Automatically use local asset path when attempting to combine injected assets ( #3802 )
...
Credit to @cleverer. Fixes #3264 .
2018-09-24 14:17:00 -06:00
chrisbethelepb
0ffdbc5efd
Relax restrictions on MediaLibrary filenames ( #3778 )
...
Fixes #3741 . Credit to @chrisbethelepb
2018-09-12 11:37:21 -06:00
Samuel Georges
fb2aa1730c
Fixes security issue
...
Refs #3604
2018-06-22 22:57:38 +10:00
Viamage
749cbace1b
MediaLibrary test updates ( #3580 )
...
Updates for depreciated methods and empty tests
2018-06-04 16:48:45 -06:00
Luke Towers
b0f82adb99
Fix unit tests
...
Fix to use private files instead as a result of da17a96926
2018-04-19 01:57:27 -06:00
Samuel Georges
ba4eba183d
Keep the good unit test from #3195
2018-04-06 11:05:31 +10:00
Arthur Kushman
c78b3ef786
Code formatting changes ( #3363 )
...
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Gabriel Caruso
aa14d77516
Refactoring tests ( #3291 )
2018-01-07 19:55:53 -06:00
viamage
7ffb79a5fd
Fix typo ( #3326 )
...
Fixed typo, added CmsCompoundObject::getComponentProperties method test. Credit to @viamage
2017-12-27 13:31:34 -06:00
Samuel Georges
fb0121b426
Fixes unit test
2017-11-19 15:43:57 +11:00
Jim Cottrell
c419c38efd
Reload October singletons in PluginTestCase for #3208
2017-10-27 18:22:31 -06:00
Samuel Georges
669a4cee6e
Merge branch 'maintenance-mediamanager' into develop
2017-10-16 17:56:34 +11:00
Luke Towers
48b97a3178
Moved MediaLibrary test to the system module
2017-10-08 23:16:18 -06:00
Harmen Janssen
a2a91a38e6
Added PluginManager::unregisterAll() ( #3156 )
2017-10-08 12:14:17 -06:00
Samuel Georges
e32e8d1390
Test new validation logic
2017-07-29 10:55:21 +10:00
Samuel Georges
e9884522ea
Missing forward slash
2017-07-27 14:01:27 +10:00
Samuel Georges
1db67af8e8
Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
...
Conflicts:
modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Samuel Georges
247151f4f8
Fixes test
2017-06-30 04:58:51 +10: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
Samuel Georges
9dd6f10d6f
Refit to new class loader
2017-06-08 18:56:54 +10:00
Oscar Arzola
a7d20211ae
Fixed Formatting and added docblock
2017-06-02 09:51:13 -05:00
Oscar Arzola
0bd12cf0e6
Added Extensibility to ReportWidgets
2017-05-30 16:49:35 -05:00
Samuel Georges
671f23e284
Move mail pretend to after app has migrated
2017-05-16 18:50:22 +10:00
Samuel Georges
f3aad33e5e
Resurrect Mail::pretend
...
Moved upgrade guide to RN-9 http://octobercms.com/support/article/rn-9
2017-05-13 12:31:34 +10:00
Samuel Georges
bc23bc8fe6
getRelatedIds -> allRelatedIds
...
Create a running document of breaking changes
2017-05-13 06:49:29 +10: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
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Panagiotis Koursaris
902f61d13c
Unnecessary static call directly to phpunit
2017-04-12 17:17:06 +03:00
Samuel Georges
08e7fa4296
Adds a helper for fetching the plugin object
...
This is useful when you need to "boot" or "register" certain areas of the plugin itself, eg:
$plugin = $this->getPluginObject();
$plugin->registerSubscriptionEvents();
Calling boot() or register() may work too but not always, sometimes there can be things you don't want registered. Hence why it doesn't occur automatically.
2017-04-05 08:23:39 +10:00
Samuel Georges
26b4a64854
Fixes unit test
...
Throwing a guarded / mass assign exception
2017-03-22 07:47:11 +11:00
Samuel Georges
ef1f8a76d8
Minor naming convention change
2017-03-22 07:33:35 +11:00
Samuel Georges
b32176682f
Add validation model test
...
Refs #2676
2017-03-22 07:31:38 +11:00
Samuel Georges
5e1feb5870
Fixes unit tests
...
Further to previous commit moved Cms\Classes\ViewBag to components directory
2017-03-16 07:26:57 +11:00
Samuel Georges
aa0fd163fd
File attachments should support creation by string
...
Refs https://github.com/octobercms/docs/pull/227
2017-02-28 17:16:28 +11:00
Samuel Georges
53414599ef
This should be flushed as part of the service provider
2017-02-16 07:35:37 +11:00
Samuel Georges
f608b1ac78
Remove query caching config
...
Refs https://github.com/octobercms/library/pull/253#issuecomment-279944594
2017-02-15 20:57:42 +11:00
Samuel Georges
8d1ecb01b8
Improve nullable tests
...
Refs https://github.com/octobercms/october/issues/2612
2017-02-02 05:15:47 +11:00
Samuel Georges
7b0531e0a0
Tests to prove double save issue fixed
...
Has one and morph one relations would null on a second save. This is because the relation would use an UPDATE sql query to null the value, then leverage eloquent's save() method to apply it again. Eloquent's save() method does not apply attributes that are unchanged (not dirty), resulting in the value being left as null.
Refs #1986
2016-11-22 08:07:10 +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
Samuel Georges
fdcfe801a7
Write tests for #2258
...
Prevent nulling when model fails validation
2016-07-30 10:59:25 +10:00
Samuel Georges
b606e331a0
Write tests for MorphMany models
...
Refs https://github.com/octobercms/library/pull/217
2016-07-16 14:44:08 +10:00
Samuel Georges
649e1cfaa7
Fixes test
2016-06-04 06:13:25 +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
b268f54189
Write tests for simple get/set many-to-many
...
Refs #908
2016-05-11 07:56:11 +10:00
Samuel Georges
518dee7730
Write MorphOne model test
...
Refs #1868
2016-04-05 00:03:09 +10:00
Samuel Georges
39fc16ddfc
Fixes tests so they pass
2016-04-05 00:02:32 +10:00
Samuel Georges
f45692ce84
(Minor) Fixes test
2016-03-25 17:34:16 +11:00
Samuel Georges
7c08b10fa2
Add cms.theme.setActiveTheme event
...
Bring other event names in to line with convention
Complete getConfigArray method
2016-03-23 20:11:55 +11:00
Samuel Georges
4922d6d284
Retain previous listInTheme cache functionality
2016-03-20 16:04:27 +11:00
Samuel Georges
beb851bf5c
Add viewBag tests, this is core functionality now
2016-03-17 19:21:41 +11:00
Samuel Georges
8e3ff0c700
Update tests with minor API changes for Halcyon implementation
2016-03-17 07:58:42 +11:00
Samuel Georges
d76863a3ec
Merge branch 'develop' into stable
...
Conflicts:
composer.json
2016-02-27 14:55:52 +11:00
Samuel Georges
423360b2d2
Merge pull request #1631 from JoelESvensson/develop
...
Files in the media library can now contain two dots
2016-02-27 14:36:38 +11:00
Samuel Georges
98eb4f8239
Add support for "relation" with Tree models
...
- This makes the list slightly more efficient for small collections, less efficient for larger collections. If this becomes a problem in future we may need to look at a solution that grabs all the root nodes to start, then lazy loads any expanded nodes as secondary AJAX requests.
- Write tests for the Tree trait improvements
Fixes #1647
2016-02-27 11:29:07 +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
Samuel Georges
23da8330e7
Test for detaching belongs to many after delete
2016-02-03 22:09:21 +11:00
Samuel Georges
d00883bd8f
Minor touch ups to Nullable tests
2016-01-27 08:40:23 +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
a498ca49a4
Write tests for hasMany simple value get/set
2016-01-24 12:39:39 +11:00