Added test for prototype label.
This commit is contained in:
parent
5178e76d4e
commit
f91660db9c
@ -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