mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-06-16 01:31:39 +02:00
Merge remote-tracking branch 'origin/2.0'
This commit is contained in:
commit
f9f56b0ef2
|
@ -10,3 +10,7 @@ SiteTree:
|
||||||
HtmlEditorField_Toolbar:
|
HtmlEditorField_Toolbar:
|
||||||
extensions:
|
extensions:
|
||||||
- DocumentHtmlEditorFieldToolbar
|
- DocumentHtmlEditorFieldToolbar
|
||||||
|
|
||||||
|
# Ensure that if the parent UploadField is overloaded with the injector, that the DMSUploadField is returned
|
||||||
|
Injector:
|
||||||
|
DMSUploadField: DMSUploadField
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"require": {
|
"require": {
|
||||||
"silverstripe/framework": "^3.5",
|
"silverstripe/framework": "^3.5",
|
||||||
"silverstripe/cms": "^3.5",
|
"silverstripe/cms": "^3.5",
|
||||||
"silverstripe-australia/gridfieldextensions": "^1.1.0",
|
"symbiote/silverstripe-gridfieldextensions": "^1.1.0",
|
||||||
"silverstripe/taxonomy": "^1.2"
|
"silverstripe/taxonomy": "^1.2"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
|
|
@ -14,6 +14,15 @@ class DMSUploadFieldTest extends SapphireTest
|
||||||
$this->field = new DMSUploadField('StubUploadField');
|
$this->field = new DMSUploadField('StubUploadField');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SS 3.x injector will return an overloaded parent of a child class if the child is not injected.
|
||||||
|
* This is a sanity check.
|
||||||
|
*/
|
||||||
|
public function testDmsUploadFieldIsInjectable()
|
||||||
|
{
|
||||||
|
$this->assertInstanceOf('DMSUploadField', DMSUploadField::create('Stub'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The validator is coded to always return true. Replace this test if this behaviour changes in future.
|
* The validator is coded to always return true. Replace this test if this behaviour changes in future.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user