Commit Graph

36 Commits

Author SHA1 Message Date
Ben Thomson a59d3b83eb Code quality clean up (#4449)
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Denis Denisov b66084287e
fix(build): Marked test as skipped for further investigation (#4191) 2019-03-09 12:14:48 +02: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 e32e8d1390 Test new validation logic 2017-07-29 10:55:21 +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 bc23bc8fe6 getRelatedIds -> allRelatedIds
Create a running document of breaking changes
2017-05-13 06:49:29 +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 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 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 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 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
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
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 ae73c2c592 Remove test testListsNestedUnknownColumn
^ because different DB drivers behave differently
Minor touch ups
2016-01-04 17:54:23 +11:00
Samuel Georges 4e1d2ca445 Write tests for listsNested on tree traits 2015-11-28 14:12:50 +11:00
Samuel Georges 9dc683ba16 Tests for hasOne get/set simple values + deferred binding 2015-10-17 17:51:46 +11:00
Samuel Georges 3f7aa9f9f7 Write tests for revisionable trait 2015-09-19 05:36:58 +10:00
Samuel Georges d9090b3210 Write tests for Tree traits 2015-09-19 05:32:49 +10:00
Samuel Georges bf961a9a5a Write tests for deferred binding 2015-09-16 05:53:36 +10:00
Samuel Georges cd1edcb055 Add new suite for database testing 2015-09-09 19:28:47 +10:00