mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
Tests for new AssetAdmin UploadField
This commit is contained in:
parent
5a33b6ccbd
commit
550f9856d6
@ -18,7 +18,7 @@ use SilverStripe\Forms\FieldGroup;
|
||||
use SilverStripe\Forms\CompositeField;
|
||||
use SilverStripe\Forms\RequiredFields;
|
||||
use SilverStripe\Forms\HTMLReadonlyField;
|
||||
|
||||
use SilverStripe\AssetAdmin\Forms\UploadField as NewUploadField;
|
||||
|
||||
class BasicFieldsTestPage extends TestPage
|
||||
{
|
||||
@ -268,6 +268,19 @@ class BasicFieldsTestPage extends TestPage
|
||||
UploadField::create('ManyManyFiles', 'UploadField for many_many')
|
||||
->setDescription($description)
|
||||
->setRightTitle($rightTitle),
|
||||
// NewUploadField::create('AttachedFile', 'New UploadField with canUpload=false')
|
||||
// ->setDescription($description)
|
||||
// ->setRightTitle($rightTitle),
|
||||
// ->setConfig('canUpload', false),
|
||||
NewUploadField::create('Image', 'New UploadField for image')
|
||||
->setDescription($description)
|
||||
->setRightTitle($rightTitle),
|
||||
NewUploadField::create('HasManyFiles', 'New UploadField for has_many')
|
||||
->setRightTitle($rightTitle)
|
||||
->setDescription($description),
|
||||
NewUploadField::create('ManyManyFiles', 'New UploadField for many_many')
|
||||
->setDescription($description)
|
||||
->setRightTitle($rightTitle),
|
||||
));
|
||||
|
||||
$blacklist = array(
|
||||
|
Loading…
Reference in New Issue
Block a user