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 f921676 commit f401af1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Tests/Form/FormMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public function testWithNoOptions()
'auto_created' => true,
'groups' => array('foobar'),
'tab' => true,
'name' => 'default'
'name' => 'default',
'box_class' => 'box box-primary'
)), $this->admin->getFormTabs());

$this->assertEquals(array('foobar' => array(
Expand All @@ -112,7 +113,8 @@ public function testWithOptions()
'description' => false,
'translation_domain' => 'Foobar',
'fields' => array (),
'name' => 'foobar'
'name' => 'foobar',
'box_class' => 'box box-primary'
)), $this->admin->getFormGroups());

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

$this->assertEquals(array('foobar' => array(
Expand Down
3 changes: 2 additions & 1 deletion Tests/Show/ShowMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ public function testReorder()
'description' => false,
'translation_domain' => null,
'class' => false,
'name' => 'Group1'
'name' => 'Group1',
'box_class' => 'box box-primary'
)), $this->admin->getShowGroups());

$this->showMapper->reorder(array('fooName3', 'fooName2', 'fooName1', 'fooName4'));
Expand Down

0 comments on commit f401af1

Please sign in to comment.