8000 Merge remote branch 'umpirsky/collection-name' into issue3738 · symfony/symfony@fc342d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc342d1

Browse files
committed
Merge remote branch 'umpirsky/collection-name' into issue3738
2 parents 20a9961 + f91660d commit fc342d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/CollectionTypeTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,15 @@ public function testPrototypeNameOption()
185185

186186
$this->assertSame('__test__', $form->getAttribute('prototype')->getName());
187187
}
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+
}
188199
}

0 commit comments

Comments
 (0)
0