Tests for new AssetAdmin UploadField

This commit is contained in:
Ingo Schommer 2017-01-11 23:38:27 +13:00
parent 5a33b6ccbd
commit 550f9856d6

View File

@ -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(