Commit Graph

87 Commits

Author SHA1 Message Date
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 6291829bba Merge pull request #1697 from mcustiel/feature-fix-plugintestbase
Fix in PluginTestBase
2016-01-16 09:04:38 +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 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
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
Samuel Georges 1c8d021a35 Adds the ability to remove navigation items
Included tests
Refs #1413
2015-09-12 08:45:58 +10:00
Samuel Georges cd1edcb055 Add new suite for database testing 2015-09-09 19:28:47 +10:00
Samuel Georges 50812adcaf No flush abstract classes. No treat as test either. 2015-09-09 19:28:10 +10:00
Samuel Georges 2c5f9eba6b Write tests that verify the truth of #1373 2015-08-15 13:39:44 +10:00
Samuel Georges 364809a38e Add instructions for running phpunit 2015-08-08 15:45:32 +10:00
Samuel Georges e97e6804f2 Minor 2015-08-08 15:37:08 +10:00
Samuel Georges 0c8e813029 Create plugin unit test case
^- inspired by keios/oc-plugin-testsuite package
2015-08-08 15:35:22 +10:00
Samuel Georges 5c3dd4f145 Add tests that verify the truth of #1343
Plugins should be able to call NavigationManager::addSideMenuItems() without error
2015-08-08 12:28:15 +10:00
Samuel Georges 904db06f5e Write tests that verify truth of #1272
Content files with .txt extensions should not be interpreted as HTML
2015-08-08 12:03:20 +10:00
Samuel Georges 4e99ea6435 Add tests for Import/Export models 2015-08-04 21:03:42 +10:00
Samuel Georges 3a2b94829a Fixes syntax error in "system/lv" lang, write test to prevent further breakages 2015-07-29 08:20:22 +10:00
Samuel Georges bb4c2da404 Revert change from #1315, fixes original issue, write tests 2015-07-28 18:52:12 +10:00
Samuel Georges 408c06a33f Fixes unit tests for case sensitive file systems
We should be using the class compiler here eventually
2015-07-25 12:29:57 +10:00
Samuel Georges dcdd2056e8 Manually bootstrap autoloaders 2015-07-25 12:12:07 +10:00
Samuel Georges 04248c72ed Fixes unit tests 2015-07-25 11:49:26 +10:00
Samuel Georges 4344a5a245 Forgot to declare the form widgets 2015-07-25 11:07:51 +10:00
Samuel Georges c7f54ef010 Fixes WidgetManagerTest 2015-07-25 11:05:58 +10:00
Samuel Georges a324f01678 CmsCompoundObject::hasComponent() now resolves registered codes for comparison 2015-03-07 20:28:17 +11:00
Samuel Georges 5d3b1996a7 Update functional test to factor in the new user menu 2015-03-07 14:15:28 +11:00
Samuel Georges 842252b556 Minor 2015-03-04 19:22:25 +11:00
Samuel Georges 9696375099 Fixes functional tests so they pass, add details about selenium set up 2015-03-02 17:18:53 +11:00
Samuel Georges 1a0ed50d82 Adds readme for tests 2015-03-02 16:08:09 +11:00
Samuel Georges bd2b9f2770 Rem incomplete tests 2015-03-02 16:05:26 +11:00
Samuel Georges 83b54c043c Fixes unit tests so they pass 2015-03-02 16:02:13 +11:00
Samuel Georges 7145aac457 Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges f6371d532b Fixes unit tests 2015-02-10 17:45:27 +11:00
Samuel Georges 8c1d0aa7da Move plugin/theme fixtures so they are shared 2015-02-10 17:45:07 +11:00