Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Add fieldset class needed by Zend\Form\FormTest::testPreserveEntities…
Browse files Browse the repository at this point in the history
…BoundToCollectionAfterValidation
  • Loading branch information
sjuvonen committed Mar 19, 2013
1 parent c51865c commit c534274
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/ZendTest/Form/TestAsset/ProductCategoriesFieldset.php
@@ -0,0 +1,24 @@
<?php

namespace ZendTest\Form\TestAsset;

class ProductCategoriesFieldset extends ProductFieldset
{
public function __construct() {
parent::__construct();

$template = new CategoryFieldset();

$this->add(array(
'name' => 'categories',
'type' => 'collection',
'options' => array(
'label' => 'Categories',
'should_create_template' => true,
'allow_add' => true,
'count' => 0,
'target_element' => $template,
),
));
}
}

0 comments on commit c534274

Please sign in to comment.