浏览代码

add tests for box_class

Quentin Somazzi 10 年之前
父节点
当前提交
f401af1db3
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 6 3
      Tests/Form/FormMapperTest.php
  2. 2 1
      Tests/Show/ShowMapperTest.php

+ 6 - 3
Tests/Form/FormMapperTest.php

@@ -87,7 +87,8 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
             '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(
@@ -112,7 +113,8 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
             'description' => false,
             'translation_domain' => 'Foobar',
             'fields' => array (),
-            'name' => 'foobar'
+            'name' => 'foobar',
+            'box_class' => 'box box-primary'
         )), $this->admin->getFormGroups());
 
         $this->assertEquals(array('default' => array (
@@ -154,7 +156,8 @@ class FormMapperTest extends \PHPUnit_Framework_TestCase
             '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(

+ 2 - 1
Tests/Show/ShowMapperTest.php

@@ -342,7 +342,8 @@ class ShowMapperTest extends \PHPUnit_Framework_TestCase
                 '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'));