mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
fixed ActiveForm tests for output buffering
related to #8779, and 7dc984d35928128b3612fb6aa4ed19b03ee963fd
This commit is contained in:
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user