Added test for prototype label.

This commit is contained in:
umpirsky 2012-03-30 15:35:41 +02:00
parent 5178e76d4e
commit f91660db9c

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