Commit Graph

203 Commits

Author SHA1 Message Date
Ingo Schommer
d2711a82bb Add ownership model for files 2017-07-06 14:20:29 +12:00
Ingo Schommer
c272a25cb2 Versioned Company, fixed UploadField NS 2017-07-06 08:19:08 +12:00
Ingo Schommer
29c5c29c95 Reduced default page count a bit
15k is a good high-use case, but a bit much for a standard CMS installation
2017-07-05 09:58:48 +12:00
Damian Mooyman
02e932f3e5
Remove object class 2017-05-18 17:23:32 +12:00
Ingo Schommer
260ad323ac Improved page generation (customise depths)
Similar to FTFileMakerTask, this allows for creation of trees of arbitrary depths.
Which is useful to test long page lists, deep trees, or large amount of “broad vs deep” nestings.
Yes, it has no unit tests - I’m fine with that :)
2017-05-18 13:20:53 +12:00
Ingo Schommer
e526c9692c Removed legacy fields
See https://github.com/silverstripe/silverstripe-framework/pull/6883
2017-05-08 20:25:15 +12:00
Ingo Schommer
0e893b503b Support for new DatetimeField
See https://github.com/silverstripe/silverstripe-framework/issues/6140
2017-04-26 10:32:09 +12:00
Ingo Schommer
8cb15a45de Align date minimums with db defaults
Avoid validation errors by default
2017-04-26 10:32:02 +12:00
Ingo Schommer
902151603c Removed unused DMYDate 2017-04-26 10:31:22 +12:00
Ingo Schommer
097e136525 Use HTML5 date (with min-date case) 2017-04-03 12:01:47 +12:00
Ingo Schommer
df5681371d Added TimeField with setHTML5(true) 2017-03-31 14:12:56 +13:00
Ingo Schommer
1363efe1e1 Removed AssetField, only use new UploadField
AssetField and the old UploadField have been removed from core.
2017-03-30 09:32:57 +13:00
Ingo Schommer
f465d5c3ff Updated setShowCalendar() use 2017-02-16 11:27:12 +13:00
Ingo Schommer
1df00831f4 Use new SeparatedDateField 2017-02-16 09:08:28 +13:00
Ingo Schommer
c55b641604 Scale/float testing 2017-02-16 08:23:09 +13:00
Ingo Schommer
7fcf623639 Fix dev/build with Member::actAs()
Fixes #28
2017-01-16 11:11:40 +13:00
Ingo Schommer
db7c537666 Use PageController without underscore 2017-01-15 21:19:56 +13:00
Ingo Schommer
550f9856d6 Tests for new AssetAdmin UploadField 2017-01-11 23:38:27 +13:00
Ingo Schommer
5a33b6ccbd Merge pull request #27 from open-sausages/pulls/4.0/cleanup-4
Update deprecated API
2017-01-11 22:45:36 +13:00
Damian Mooyman
813e75a880 Update deprecated API
Code cleanup
2017-01-11 10:47:17 +13:00
Ingo Schommer
0620392dc4 FTFileMakerTask 2017-01-06 19:48:50 +13:00
Ingo Schommer
a97830ad1c Moved tasks into subfolder 2017-01-06 08:31:40 +13:00
Ingo Schommer
0618abe1ab Added new HTMLReadonlyField implementation 2016-10-20 22:06:02 +13:00
Ingo Schommer
89922b58e9 Don't set OptionSetField to multiple vals
It's a radiobutton based field, so multiple values don't make sense here
2016-10-20 08:51:27 +13:00
Ingo Schommer
a0099fb03f Populate readonly/disabled manymany 2016-10-20 08:37:06 +13:00
Ingo Schommer
8a024fd39c Use actual manymany for CheckboxSetField
It's not really designed to work with a has_one or database column (you'd use OptionsetField for that).
Also removed the "Field" suffix from "MultipleListboxField" (inconsistent with other column names)
2016-10-18 23:15:37 +13:00
Ingo Schommer
3eb6295f76 More consistent field loading, using loadDataFrom() in react test admin 2016-10-18 22:07:07 +13:00
Ingo Schommer
7137b456cf Consolidated fields 2016-10-18 16:38:41 +13:00
Ingo Schommer
8a2f501805 Sort items (no additions) 2016-10-18 16:32:13 +13:00
Ingo Schommer
ccbbd91822 Set values on readonly/disabled fields
These field variations are not corresponding to properties on the underlying DataObject,
hence need to be set manually. At the moment, Form->loadDataFrom() is never called during schema generation,
so the setValue() calls are required for all fields - which is a bug in the LeftAndMain->schema() implementation.
2016-10-14 07:47:57 +13:00
Ingo Schommer
fbae8eef90 Fixed casing in HTMLEditorField default data 2016-10-14 07:46:13 +13:00
Ingo Schommer
c86232f198 Present HTML formatted text in HTMLEditorField test 2016-10-14 07:46:00 +13:00
Christopher Joe
9c75f0a4e1 Rebased with webpack 2016-09-29 13:39:07 +13:00
Christopher Joe
a4e7440c62 Added TestReactFormBuilder admin section, this utilises BasicFieldsTestPage fields currently. 2016-09-28 11:42:20 +13:00
Ingo Schommer
e143204ae6 Regression on field labels
Auto-conversion was a bit too overzealous, and I failed at reviewing the diff properly.
2016-09-14 16:34:31 +12:00
Ingo Schommer
d735641bc0 Fixed namespace regression 2016-09-10 22:14:11 +12:00
Ingo Schommer
7720748b34 Compat with SS4 namespaces
See https://github.com/silverstripe/silverstripe-framework/issues/5637
2016-09-07 17:10:55 +12:00
Ingo Schommer
c3f64d7ddc Extend correct ModelAdmin class 2016-09-07 09:10:34 +12:00
Christopher Joe
f3024221ed Fix CMS Namespace changes 2016-08-16 16:38:31 +12:00
Damian Mooyman
26b8dcd39f Make employe fields untabbed to test flat forms 2016-08-03 14:12:53 +12:00
Damian Mooyman
0e84d74b24
Add description and right title 2016-07-21 13:43:44 +12:00
Damian Mooyman
647d1f36f6 Alias namespaced table 2016-07-20 10:35:01 +12:00
Damian Mooyman
ef723bb265 Update for security namespace 2016-07-20 10:34:52 +12:00
Ingo Schommer
8f315e7962 Namespaced model to get more 4.x test coverage 2016-07-01 14:37:50 +12:00
Ingo Schommer
d66b64d1fa Wrapper div for LiteralField 2016-06-17 14:17:36 +12:00
Ingo Schommer
049277d71f LiteralField with HTML 2016-06-16 14:14:18 +12:00
Ingo Schommer
aaa56c176e More realistic SelectionGroup config 2016-06-16 14:14:13 +12:00
Ingo Schommer
e98f22f400 Removed TimeWithDropdown, no longer supported in core 2016-06-16 13:35:41 +12:00
Ingo Schommer
d7d2afe250 Added more fields (AssetField, LiteralField, ConfirmedPasswordField) 2016-06-16 13:31:34 +12:00
Ingo Schommer
a499292bb4 Added more field variations (LabelField, CompositeField, SelectionGroup) 2016-06-16 13:11:29 +12:00
Ingo Schommer
112bdeea92 4.x compat 2016-04-19 09:27:29 +12:00
helpfulrobot
a18cb30402 Converted to PSR-2 2015-12-18 09:20:49 +13:00
Ingo Schommer
f68cfda091 Fixed favourite page dropdown placement
See https://github.com/silverstripe/silverstripe-cms/issues/387
2014-03-16 16:00:35 +13:00
Sean Harvey
884b5305ed Merge pull request #9 from mandrew/frameworktest-fixes
BUG: fixes for 3.1 version
2014-02-18 10:14:03 +13:00
Sean Harvey
1a6705a5f1 Fixing use of deprecated static Director::redirect and redirectBack 2014-02-18 10:12:52 +13:00
Michael Andrewartha
1198eb9228 BUG: fixes for 3.1 version, updated function calls 2014-02-18 10:04:11 +13:00
Ingo Schommer
71a988843a ToggleCompositeField variation 2014-02-10 08:51:18 +13:00
Ingo Schommer
29de31052a MoneyField test 2014-01-22 22:21:03 +13:00
Ingo Schommer
48a939f589 Removed tests for AjaxUniqueTextField, no longer in master 2013-12-20 00:43:22 +01:00
Ingo Schommer
cb1775a1c5 Fixed static visibility 2013-12-20 00:22:38 +01:00
Ingo Schommer
7be2968a92 Reflexive relationship for File
3.1 latest complains otherwise
2013-10-24 15:02:15 +02:00
Ingo Schommer
1b1499a3f8 Added 'required' and 'validated' fields 2013-09-18 13:01:56 +02:00
Ingo Schommer
2bd2d5f844 More comprehensive UploadField test cases 2013-05-29 17:26:17 +02:00
Ingo Schommer
2ddb78e6f4 Disabled TestTagFieldPage and TestTag classes
Due to changed class parsing in 3.1, the class_exists() checks
are no longer recognized, leading to errors when the class
is only condtionally autoloaded (or the tagfield isn't present)
2013-05-29 17:26:17 +02:00
Ingo Schommer
81177f6802 Fixed declarations on TestTagFieldPage 2013-04-06 14:41:30 +02:00
Ingo Schommer
f324c12e70 TreeDropdownField with has_one and search 2013-04-06 13:44:24 +02:00
Ingo Schommer
4c062448b8 Conditionally adding tag field tests 2013-04-06 13:44:13 +02:00
Ingo Schommer
7f6c958914 3.1 compat changes 2013-04-02 18:49:57 +02:00
Ingo Schommer
e15366359e 3.1 compat 2013-03-26 13:53:37 +01:00
Ingo Schommer
708b5a2ad8 Remove cmsworkflow tests, no longer supported in 3.x 2013-03-19 09:53:21 +01:00
Ingo Schommer
907f4dd73a Fixed extraStatics usage 2013-03-19 09:44:39 +01:00
Ingo Schommer
b928d641ee Test dynamic summary_fields 2013-03-07 15:32:26 +01:00
Ingo Schommer
52e8bc13a7 NEW Test FieldGroup 2013-01-16 10:30:00 +01:00
Ingo Schommer
432cc44a30 Added many-many (plus extrafields) example 2013-01-15 00:44:45 +01:00
Ingo Schommer
247ebff56c Added UploadField example with canUpload=false 2013-01-11 00:40:35 +01:00
Ingo Schommer
a0c74c5d47 Populate default data in form fields for more accurate testing.
Also adjusted to new tooltip format in 3.1 (optional)
2012-12-13 14:59:32 +01:00
Ingo Schommer
65d930d829 Added setDescription() to all fields to test help text support
This support has been added in master, for 3.0 most elements
will simply show the "title" attribute
2012-11-30 12:08:46 +01:00
Ingo Schommer
2cf6e3c242 Added tests for HTML editing and image upload in ModelAdmin 2012-11-27 12:15:09 +01:00
Ingo Schommer
ae618798b3 Removed support for TableListField test cases 2012-11-27 12:10:58 +01:00
Ingo Schommer
848d487051 API Removed BigFamilyPage, use FTPageMakerTask instead 2012-08-29 09:44:45 +02:00
Ingo Schommer
a7b2db1e85 NEW Hide test pages from menu, group in common parent 2012-08-29 09:44:26 +02:00
Normann Lou
34f0da3d44 BUGFIX: add missing page controller class from BigFamilyPage 2012-06-30 01:06:18 +12:00
Normann Lou
a2e3738f66 ENHANCEMENT: use UplocadField constructor combine with give the field allowedExtensions as array('jpg', 'git', 'png') to replace the SimpleImageField constructor 2012-06-30 00:47:50 +12:00
Normann Lou
0a4f22a08f ENHANCEMENT: use FieldList constructor to replace FieldSet constructor for SilverStripe 3
ENHANCEMENT: use FormActioin constructor to replace ImageFormAction constructor for SilverStripe 3
2012-06-30 00:27:32 +12:00
Ingo Schommer
2ca8ff1c7d BUGFIX Publishing test pages regardless of permissions, e.g. when executed in cli 2012-06-15 11:56:24 +02:00
Normann Lou
728bcfe470 MINOR: add a test case which create a page with 100 sub-pages so as to develop features that need to based on a page with lots of children such as limit showing number of children to 20 while adding a "show all" node as the 21st node. 2012-04-24 17:32:52 +12:00
Ingo Schommer
ca327d218e MINOR Reverted usage of $param in getCMSFields() 2012-04-13 15:59:19 +02:00
Ingo Schommer
beba8d3153 MINOR Using new late static binding create() logic 2012-04-12 11:56:32 +02:00
Sean Harvey
a50f9fbcac MINOR E_STRICT fixes 2012-04-12 15:04:39 +12:00
Ingo Schommer
95a1c51ca6 ENHANCEMENT Demo'ing model validation through Company->validate() 2012-03-14 17:20:25 +01:00
Ingo Schommer
4645195dd4 MINOR Relying on field scaffolding in Company (now that FormScaffolder uses GridField) 2012-03-14 17:20:03 +01:00
Ingo Schommer
31f8f35626 BUGFIX Fixed duplicate relationship name which confused GridField 2012-03-14 17:19:28 +01:00
Normann Lou
b6401c2386 MINOR: Not GridField need to show for an new Company object before it's saved to DB. 2012-03-13 17:34:37 +13:00
Ingo Schommer
a360865b47 ENHANCEMENT Added LegacyTableFieldTestPage 2012-03-12 17:23:29 +01:00
Sam Minnee
b67f99adbe BUGFIX: Make frameworktest rely on built-in gridfield configs 2012-03-09 18:24:18 +13:00
Ingo Schommer
d37bd9d306 MINOR Using renamed GridFieldDeleteAction and GridFieldEditAction 2012-03-08 16:34:14 +01:00
Ingo Schommer
e313964668 MINOR Removed obsolete getCMSFields() arguments 2012-03-08 11:09:19 +01:00
Ingo Schommer
fbf955f602 ENHANCEMENt Added tree-based fields 2012-03-08 10:36:12 +01:00
Ingo Schommer
e815c5bf09 MINOR Fixed FormField->Name() usage 2012-03-02 01:03:02 +01:00
Ingo Schommer
04cf3c6d7b MINOR Moved SifrPage into its own "folder sandbox" 2012-02-29 16:10:15 +01:00