114 Commits

Author SHA1 Message Date
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
Samuel Georges
d34350a7b1 Merge branch 'develop' into stable 2016-01-16 10:20:21 +11:00
Samuel Georges
6291829bba Merge pull request #1697 from mcustiel/feature-fix-plugintestbase
Fix in PluginTestBase
2016-01-16 09:04:38 +11:00
Samuel Georges
631304abc2 Tests for model delete event cascading 2016-01-13 20:11:39 +11:00
Mariano Custiel
3fdb0bcf81 Fixed the check for already processed plugins 2016-01-08 15:49:42 +01:00
Mariano Custiel
8c608b6a98 Rolled back unneeded change. 2016-01-08 15:44:37 +01:00
Mariano Custiel
902385b4e9 Removed check that made loop to always continue. Moved dependencies refresh to be done before the tested plugin refresh. 2016-01-08 15:34:40 +01:00
Samuel Georges
e5aa1d651c Prepare tests for BelongsToMany relation type 2016-01-06 18:51:31 +11:00
Samuel Georges
8f68269b27 Fixes unit test 2016-01-04 18:10:35 +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
ecb54ff92c Rollback #1672 2016-01-02 13:40:32 +11:00
DQ Sully
a5b3b49668 Make comments more clear 2015-12-28 10:52:10 -07:00
DQ Sully
2fae5a30b9 Fix Twig Caching
When October would load a file from its changed source, Twig would not see the message until it had gone. See Cms\Classes\Loader->isFresh. This meant a template would not update unless you deleted the Twig cache, or that template's TTL expired. Fix: add another variable (freshness) that would only change after being observed, and accurately reflected if a template's source had been modified
2015-12-28 10:09:15 -07:00
Samuel Georges
971f7c5053 Fixes test class conflict
Refs https://github.com/octobercms/library/pull/151
2015-12-19 11:49:31 +11:00
Joel E. Svensson
ce0bbc988e Added tests for Cms\Classes\MediaLibrary::validatePath($path) 2015-12-06 19:17:14 +01:00
Samuel Georges
73d6ff2324 Minor 2015-11-28 16:22:18 +11:00
Marcelo Jacobus
8c689d63ea Ignored composer.json. Fixed failing tests
Tests were failing because the indexes were not the same
2015-11-28 16:19:41 +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
Jofry
012f7233f8 Fix for PluginTestCase not loading dependencies. 2015-10-23 10:55:42 +11:00
Samuel Georges
9dc683ba16 Tests for hasOne get/set simple values + deferred binding 2015-10-17 17:51:46 +11:00
Samuel Georges
84a95af93b whereComponent doesn't rely on the component object 2015-10-09 05:32:24 +11:00
Samuel Georges
3531793ca3 Add where and whereComponent to CMS objects 2015-10-08 07:28:20 +11:00
Samuel Georges
8e986c42b1 Remove some deprecated code 2015-10-03 07:31:01 +10: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
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