Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add fieldset class needed by Zend\Form\FormTest::testPreserveEntities…

…BoundToCollectionAfterValidation
  • Loading branch information...
commit c534274afbe5949b5659ca9fbd84f67560f60b72 1 parent c51865c
@sjuvonen sjuvonen authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 tests/ZendTest/Form/TestAsset/ProductCategoriesFieldset.php
View
24 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,
+ ),
+ ));
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.