Pārlūkot izejas kodu

add tests for box_class

Quentin Somazzi 10 gadi atpakaļ
vecāks
revīzija
f401af1db3
2 mainītis faili ar 8 papildinājumiem un 4 dzēšanām
  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'));