Merge remote branch 'umpirsky/collection-name' into issue3738

This commit is contained in:
Bernhard Schussek 2012-04-06 19:34:40 +02:00
commit fc342d1a5b

View File

@ -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'));
}
}