Skip to content

Commit

Permalink
Add tests for box_class
Browse files Browse the repository at this point in the history
  • Loading branch information
qsomazzi committed Mar 13, 2015
1 parent 2571598 commit a1d8aff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Resources/doc/reference/action_create_edit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ To specify options, do as follow:
Here is an example of what you can do with customizing the box_class on a group

.. figure:: ../images/box_class.png
:align: center
:alt: Dashboard
:width: 500
:align: center
:alt: Box Class
:width: 500

Embedding other Admins
----------------------
Expand Down
9 changes: 6 additions & 3 deletions Tests/Form/FormMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public function testWithNoOptions()
'description' => false,
'translation_domain' => null,
'fields' => array (),
'name' => 'foobar'
'name' => 'foobar',
'box_class' => 'box box-primary'
)), $this->admin->getFormGroups());
}

Expand Down Expand Up @@ -125,7 +126,8 @@ public function testWithOptions()
'auto_created' => true,
'groups' => array('foobar'),
'tab' => true,
'name' => 'default'
'name' => 'default',
'box_class' => 'box box-primary'
)), $this->admin->getFormTabs());
}

Expand Down Expand Up @@ -168,7 +170,8 @@ public function testWithFieldsCascadeTranslationDomain()
'fields' => array(
'foo' => 'foo'
),
'name' => 'foobar'
'name' => 'foobar',
'box_class' => 'box box-primary'
)), $this->admin->getFormGroups());
}

Expand Down
1 change: 1 addition & 0 deletions Tests/Show/ShowMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ public function testReorder()
'description' => false,
'translation_domain' => null,
'name' => 'Group1',
'box_class' => 'box box-primary',
'fields' => array('fooName3'=>'fooName3', 'fooName2'=>'fooName2', 'fooName1'=>'fooName1', 'fooName4'=>'fooName4'),
)), true), print_r($this->admin->getShowGroups(), true));
}
Expand Down

0 comments on commit a1d8aff

Please sign in to comment.