fixed ActiveForm tests for output buffering

related to  #8779, and 7dc984d35928128b3612fb6aa4ed19b03ee963fd
This commit is contained in:
Carsten Brandt
2016-03-28 04:54:52 +02:00
parent be3453fe1c
commit 608066b05f
3 changed files with 38 additions and 4 deletions

View File

@ -44,7 +44,8 @@ class ActiveFieldTest extends \yiiunit\TestCase
$this->helperModel = new DynamicModel(['attributeName']);
ob_start();
$this->helperForm = new ActiveForm(['action' => '/something']);
$this->helperForm = ActiveForm::begin(['action' => '/something', 'enableClientScript' => false]);
ActiveForm::end();
ob_end_clean();
$this->activeField = new ActiveFieldExtend(true);
@ -347,7 +348,7 @@ EOD;
public function testEnctype()
{
$this->activeField->fileInput();
$this->assertEqualsWithoutLE('multipart/form-data', $this->activeField->form->options['enctype']);
$this->assertEquals('multipart/form-data', $this->activeField->form->options['enctype']);
}
/**