8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20a9961 + f91660d commit fc342d1Copy full SHA for fc342d1
src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php
@@ -185,4 +185,15 @@ public function testPrototypeNameOption()
185
186
$this->assertSame('__test__', $form->getAttribute('prototype')->getName());
187
}
188
+
189
+ public function testPrototypeDefaultLabel()
190
+ {
191
+ $form = $this->factory->create('collection', array(), array(
192
+ 'type' => 'file',
193
+ 'allow_add' => true,
194
+ 'prototype' => true,
195
+ ));
196
197
+ $this->assertSame('__name__', $form->createView()->get('prototype')->get('label'));
198
+ }
199
0 commit comments