diff --git a/apps/basic/views/site/login.php b/apps/basic/views/site/login.php index 0f337a3..efe47e0 100644 --- a/apps/basic/views/site/login.php +++ b/apps/basic/views/site/login.php @@ -19,7 +19,7 @@ $this->params['breadcrumbs'][] = $this->title; 'login-form')); ?> field($model, 'username')->textInput(); ?> field($model, 'password')->passwordInput(); ?> - field($model, 'rememberMe', array('options' => array('class' => 'checkbox')))->checkbox(); ?> + field($model, 'rememberMe')->checkbox(); ?>
'btn btn-primary')); ?>
diff --git a/tests/unit/framework/helpers/HtmlTest.php b/tests/unit/framework/helpers/HtmlTest.php index b041903..6739da6 100644 --- a/tests/unit/framework/helpers/HtmlTest.php +++ b/tests/unit/framework/helpers/HtmlTest.php @@ -217,7 +217,7 @@ class HtmlTest extends TestCase 'label' => 'ccc', 'labelOptions' => array('class' =>'bbb'), ))); - $this->assertEquals('
', Html::radio('test', true, array( + $this->assertEquals('
', Html::radio('test', true, array( 'class' => 'a', 'uncheck' => '0', 'label' => 'ccc', @@ -237,7 +237,7 @@ class HtmlTest extends TestCase 'label' => 'ccc', 'labelOptions' => array('class' =>'bbb'), ))); - $this->assertEquals('
', Html::checkbox('test', true, array( + $this->assertEquals('
', Html::checkbox('test', true, array( 'class' => 'a', 'uncheck' => '0', 'label' => 'ccc', @@ -337,7 +337,7 @@ EOD; $this->assertEqualsWithoutLE($expected, Html::checkboxList('test', array('value2'), $this->getDataItems2())); $expected = <<
+

EOD; $this->assertEqualsWithoutLE($expected, Html::checkboxList('test', array('value2'), $this->getDataItems(), array( @@ -373,7 +373,7 @@ EOD; $this->assertEqualsWithoutLE($expected, Html::radioList('test', array('value2'), $this->getDataItems2())); $expected = <<
+

EOD; $this->assertEqualsWithoutLE($expected, Html::radioList('test', array('value2'), $this->getDataItems(), array(