Merge remote branch 'umpirsky/collection-name' into issue3738
This commit is contained in:
commit
fc342d1a5b
@ -185,4 +185,15 @@ class CollectionTypeTest extends TypeTestCase
|
||||
|
||||
$this->assertSame('__test__', $form->getAttribute('prototype')->getName());
|
||||
}
|
||||
|
||||
public function testPrototypeDefaultLabel()
|
||||
{
|
||||
$form = $this->factory->create('collection', array(), array(
|
||||
'type' => 'file',
|
||||
'allow_add' => true,
|
||||
'prototype' => true,
|
||||
));
|
||||
|
||||
$this->assertSame('__name__', $form->createView()->get('prototype')->get('label'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user